Mojo: Move mojo/public/utility to mojo/public/cpp/utility.

R=sky@chromium.org

Review URL: https://codereview.chromium.org/217443002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260324 0039d316-1c4b-4281-b951-d872f2087c98
parent e97a6074
...@@ -10,11 +10,11 @@ ...@@ -10,11 +10,11 @@
#include "mojo/public/bindings/remote_ptr.h" #include "mojo/public/bindings/remote_ptr.h"
#include "mojo/public/cpp/system/core.h" #include "mojo/public/cpp/system/core.h"
#include "mojo/public/cpp/system/macros.h" #include "mojo/public/cpp/system/macros.h"
#include "mojo/public/cpp/utility/run_loop.h"
#include "mojo/public/environment/environment.h" #include "mojo/public/environment/environment.h"
#include "mojo/public/gles2/gles2_cpp.h" #include "mojo/public/gles2/gles2_cpp.h"
#include "mojo/public/shell/application.h" #include "mojo/public/shell/application.h"
#include "mojo/public/shell/shell.mojom.h" #include "mojo/public/shell/shell.mojom.h"
#include "mojo/public/utility/run_loop.h"
#include "mojo/services/native_viewport/native_viewport.mojom.h" #include "mojo/services/native_viewport/native_viewport.mojom.h"
#if defined(WIN32) #if defined(WIN32)
......
...@@ -212,16 +212,16 @@ ...@@ -212,16 +212,16 @@
'mojo_utility', 'mojo_utility',
], ],
'sources': [ 'sources': [
'public/utility/tests/mutex_unittest.cc', 'public/cpp/tests/utility/mutex_unittest.cc',
'public/utility/tests/run_loop_unittest.cc', 'public/cpp/tests/utility/run_loop_unittest.cc',
'public/utility/tests/thread_unittest.cc', 'public/cpp/tests/utility/thread_unittest.cc',
], ],
'conditions': [ 'conditions': [
# See crbug.com/342893: # See crbug.com/342893:
['OS=="win"', { ['OS=="win"', {
'sources!': [ 'sources!': [
'public/utility/tests/mutex_unittest.cc', 'public/cpp/tests/utility/mutex_unittest.cc',
'public/utility/tests/thread_unittest.cc', 'public/cpp/tests/utility/thread_unittest.cc',
], ],
}], }],
], ],
...@@ -330,25 +330,25 @@ ...@@ -330,25 +330,25 @@
'target_name': 'mojo_utility', 'target_name': 'mojo_utility',
'type': 'static_library', 'type': 'static_library',
'sources': [ 'sources': [
'public/utility/mutex.h', 'public/cpp/utility/mutex.h',
'public/utility/run_loop.h', 'public/cpp/utility/run_loop.h',
'public/utility/run_loop_handler.h', 'public/cpp/utility/run_loop_handler.h',
'public/utility/thread.h', 'public/cpp/utility/thread.h',
'public/utility/lib/mutex.cc', 'public/cpp/utility/lib/mutex.cc',
'public/utility/lib/run_loop.cc', 'public/cpp/utility/lib/run_loop.cc',
'public/utility/lib/thread.cc', 'public/cpp/utility/lib/thread.cc',
'public/utility/lib/thread_local.h', 'public/cpp/utility/lib/thread_local.h',
'public/utility/lib/thread_local_posix.cc', 'public/cpp/utility/lib/thread_local_posix.cc',
'public/utility/lib/thread_local_win.cc', 'public/cpp/utility/lib/thread_local_win.cc',
], ],
'conditions': [ 'conditions': [
# See crbug.com/342893: # See crbug.com/342893:
['OS=="win"', { ['OS=="win"', {
'sources!': [ 'sources!': [
'public/utility/mutex.h', 'public/cpp/utility/mutex.h',
'public/utility/thread.h', 'public/cpp/utility/thread.h',
'public/utility/lib/mutex.cc', 'public/cpp/utility/lib/mutex.cc',
'public/utility/lib/thread.cc', 'public/cpp/utility/lib/thread.cc',
], ],
}], }],
], ],
......
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
#include "mojo/public/bindings/lib/message_builder.h" #include "mojo/public/bindings/lib/message_builder.h"
#include "mojo/public/bindings/lib/message_queue.h" #include "mojo/public/bindings/lib/message_queue.h"
#include "mojo/public/cpp/system/macros.h" #include "mojo/public/cpp/system/macros.h"
#include "mojo/public/cpp/utility/run_loop.h"
#include "mojo/public/environment/environment.h" #include "mojo/public/environment/environment.h"
#include "mojo/public/utility/run_loop.h"
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
namespace mojo { namespace mojo {
......
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
#include "mojo/public/bindings/allocation_scope.h" #include "mojo/public/bindings/allocation_scope.h"
#include "mojo/public/bindings/remote_ptr.h" #include "mojo/public/bindings/remote_ptr.h"
#include "mojo/public/bindings/tests/sample_factory.mojom.h" #include "mojo/public/bindings/tests/sample_factory.mojom.h"
#include "mojo/public/cpp/utility/run_loop.h"
#include "mojo/public/environment/environment.h" #include "mojo/public/environment/environment.h"
#include "mojo/public/tests/test_utils.h" #include "mojo/public/tests/test_utils.h"
#include "mojo/public/utility/run_loop.h"
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
namespace mojo { namespace mojo {
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
#include "mojo/public/bindings/remote_ptr.h" #include "mojo/public/bindings/remote_ptr.h"
#include "mojo/public/bindings/tests/math_calculator.mojom.h" #include "mojo/public/bindings/tests/math_calculator.mojom.h"
#include "mojo/public/bindings/tests/sample_service.mojom.h" #include "mojo/public/bindings/tests/sample_service.mojom.h"
#include "mojo/public/cpp/utility/run_loop.h"
#include "mojo/public/environment/environment.h" #include "mojo/public/environment/environment.h"
#include "mojo/public/utility/run_loop.h"
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
namespace mojo { namespace mojo {
......
...@@ -6,9 +6,9 @@ ...@@ -6,9 +6,9 @@
#include "mojo/public/bindings/remote_ptr.h" #include "mojo/public/bindings/remote_ptr.h"
#include "mojo/public/bindings/tests/sample_import.mojom.h" #include "mojo/public/bindings/tests/sample_import.mojom.h"
#include "mojo/public/bindings/tests/sample_interfaces.mojom.h" #include "mojo/public/bindings/tests/sample_interfaces.mojom.h"
#include "mojo/public/cpp/utility/run_loop.h"
#include "mojo/public/environment/environment.h" #include "mojo/public/environment/environment.h"
#include "mojo/public/tests/test_utils.h" #include "mojo/public/tests/test_utils.h"
#include "mojo/public/utility/run_loop.h"
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
namespace mojo { namespace mojo {
......
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
#include "mojo/public/bindings/lib/message_queue.h" #include "mojo/public/bindings/lib/message_queue.h"
#include "mojo/public/bindings/lib/router.h" #include "mojo/public/bindings/lib/router.h"
#include "mojo/public/cpp/system/macros.h" #include "mojo/public/cpp/system/macros.h"
#include "mojo/public/cpp/utility/run_loop.h"
#include "mojo/public/environment/environment.h" #include "mojo/public/environment/environment.h"
#include "mojo/public/utility/run_loop.h"
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
namespace mojo { namespace mojo {
......
...@@ -4,5 +4,4 @@ include_rules = [ ...@@ -4,5 +4,4 @@ include_rules = [
"+mojo/public/cpp", "+mojo/public/cpp",
# TODO(vtl): Temporary until these are moved to mojo/public/cpp: # TODO(vtl): Temporary until these are moved to mojo/public/cpp:
"+mojo/public/tests", "+mojo/public/tests",
"+mojo/public/utility",
] ]
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
// TODO(vtl): (here and below) crbug.com/342893 // TODO(vtl): (here and below) crbug.com/342893
#if !defined(WIN32) #if !defined(WIN32)
#include <time.h> #include <time.h>
#include "mojo/public/utility/thread.h" #include "mojo/public/cpp/utility/thread.h"
#endif // !defined(WIN32) #endif // !defined(WIN32)
namespace { namespace {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "mojo/public/utility/mutex.h" #include "mojo/public/cpp/utility/mutex.h"
#include <stdlib.h> // For |rand()|. #include <stdlib.h> // For |rand()|.
#include <time.h> // For |nanosleep()| (defined by POSIX). #include <time.h> // For |nanosleep()| (defined by POSIX).
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#include <vector> #include <vector>
#include "mojo/public/cpp/system/macros.h" #include "mojo/public/cpp/system/macros.h"
#include "mojo/public/utility/thread.h" #include "mojo/public/cpp/utility/thread.h"
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
namespace mojo { namespace mojo {
......
...@@ -2,13 +2,13 @@ ...@@ -2,13 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "mojo/public/utility/run_loop.h" #include "mojo/public/cpp/utility/run_loop.h"
#include <string> #include <string>
#include "mojo/public/cpp/system/core.h" #include "mojo/public/cpp/system/core.h"
#include "mojo/public/cpp/utility/run_loop_handler.h"
#include "mojo/public/tests/test_utils.h" #include "mojo/public/tests/test_utils.h"
#include "mojo/public/utility/run_loop_handler.h"
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
namespace mojo { namespace mojo {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "mojo/public/utility/thread.h" #include "mojo/public/cpp/utility/thread.h"
#include "mojo/public/cpp/system/macros.h" #include "mojo/public/cpp/system/macros.h"
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "mojo/public/utility/mutex.h" #include "mojo/public/cpp/utility/mutex.h"
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
......
...@@ -2,15 +2,15 @@ ...@@ -2,15 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "mojo/public/utility/run_loop.h" #include "mojo/public/cpp/utility/run_loop.h"
#include <assert.h> #include <assert.h>
#include <algorithm> #include <algorithm>
#include <vector> #include <vector>
#include "mojo/public/utility/lib/thread_local.h" #include "mojo/public/cpp/utility/lib/thread_local.h"
#include "mojo/public/utility/run_loop_handler.h" #include "mojo/public/cpp/utility/run_loop_handler.h"
namespace mojo { namespace mojo {
namespace { namespace {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "mojo/public/utility/thread.h" #include "mojo/public/cpp/utility/thread.h"
#include <assert.h> #include <assert.h>
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#ifndef MOJO_PUBLIC_UTILITY_LIB_THREAD_LOCAL_H_ #ifndef MOJO_PUBLIC_CPP_UTILITY_LIB_THREAD_LOCAL_H_
#define MOJO_PUBLIC_UTILITY_LIB_THREAD_LOCAL_H_ #define MOJO_PUBLIC_CPP_UTILITY_LIB_THREAD_LOCAL_H_
#ifndef _WIN32 #ifndef _WIN32
#include <pthread.h> #include <pthread.h>
...@@ -58,4 +58,4 @@ class ThreadLocalPointer { ...@@ -58,4 +58,4 @@ class ThreadLocalPointer {
} // namespace internal } // namespace internal
} // namespace mojo } // namespace mojo
#endif // MOJO_PUBLIC_UTILITY_LIB_THREAD_LOCAL_H_ #endif // MOJO_PUBLIC_CPP_UTILITY_LIB_THREAD_LOCAL_H_
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "mojo/public/utility/lib/thread_local.h" #include "mojo/public/cpp/utility/lib/thread_local.h"
#include <assert.h> #include <assert.h>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "mojo/public/utility/lib/thread_local.h" #include "mojo/public/cpp/utility/lib/thread_local.h"
#include <assert.h> #include <assert.h>
#include <windows.h> #include <windows.h>
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#ifndef MOJO_PUBLIC_UTILITY_MUTEX_H_ #ifndef MOJO_PUBLIC_CPP_UTILITY_MUTEX_H_
#define MOJO_PUBLIC_UTILITY_MUTEX_H_ #define MOJO_PUBLIC_CPP_UTILITY_MUTEX_H_
#ifdef _WIN32 #ifdef _WIN32
#error "Not implemented: See crbug.com/342893." #error "Not implemented: See crbug.com/342893."
...@@ -67,4 +67,4 @@ class MutexLock { ...@@ -67,4 +67,4 @@ class MutexLock {
} // namespace mojo } // namespace mojo
#endif // MOJO_PUBLIC_UTILITY_MUTEX_H_ #endif // MOJO_PUBLIC_CPP_UTILITY_MUTEX_H_
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#ifndef MOJO_PUBLIC_UTILITY_RUN_LOOP_H_ #ifndef MOJO_PUBLIC_CPP_UTILITY_RUN_LOOP_H_
#define MOJO_PUBLIC_UTILITY_RUN_LOOP_H_ #define MOJO_PUBLIC_CPP_UTILITY_RUN_LOOP_H_
#include <map> #include <map>
...@@ -105,4 +105,4 @@ class RunLoop { ...@@ -105,4 +105,4 @@ class RunLoop {
} // namespace mojo } // namespace mojo
#endif // MOJO_PUBLIC_UTILITY_RUN_LOOP_H_ #endif // MOJO_PUBLIC_CPP_UTILITY_RUN_LOOP_H_
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#ifndef MOJO_PUBLIC_UTILITY_RUN_LOOP_HANDLER_H_ #ifndef MOJO_PUBLIC_CPP_UTILITY_RUN_LOOP_HANDLER_H_
#define MOJO_PUBLIC_UTILITY_RUN_LOOP_HANDLER_H_ #define MOJO_PUBLIC_CPP_UTILITY_RUN_LOOP_HANDLER_H_
#include "mojo/public/cpp/system/core.h" #include "mojo/public/cpp/system/core.h"
...@@ -22,4 +22,4 @@ class RunLoopHandler { ...@@ -22,4 +22,4 @@ class RunLoopHandler {
} // namespace mojo } // namespace mojo
#endif // MOJO_PUBLIC_UTILITY_RUN_LOOP_HANDLER_H_ #endif // MOJO_PUBLIC_CPP_UTILITY_RUN_LOOP_HANDLER_H_
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#ifndef MOJO_PUBLIC_UTILITY_THREAD_H_ #ifndef MOJO_PUBLIC_CPP_UTILITY_THREAD_H_
#define MOJO_PUBLIC_UTILITY_THREAD_H_ #define MOJO_PUBLIC_CPP_UTILITY_THREAD_H_
#ifdef _WIN32 #ifdef _WIN32
#error "Not implemented: See crbug.com/342893." #error "Not implemented: See crbug.com/342893."
...@@ -59,4 +59,4 @@ class Thread { ...@@ -59,4 +59,4 @@ class Thread {
} // namespace mojo } // namespace mojo
#endif // MOJO_PUBLIC_UTILITY_THREAD_H_ #endif // MOJO_PUBLIC_CPP_UTILITY_THREAD_H_
include_rules = [ include_rules = [
"+mojo/public/environment" "+mojo/public/environment"
"+mojo/public/utility" "+mojo/public/cpp/utility"
] ]
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
#include <assert.h> #include <assert.h>
#include "mojo/public/cpp/utility/lib/thread_local.h"
#include "mojo/public/environment/lib/buffer_tls_setup.h" #include "mojo/public/environment/lib/buffer_tls_setup.h"
#include "mojo/public/utility/lib/thread_local.h"
namespace mojo { namespace mojo {
namespace internal { namespace internal {
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
#include <assert.h> #include <assert.h>
#include "mojo/public/utility/run_loop.h" #include "mojo/public/cpp/utility/run_loop.h"
#include "mojo/public/utility/run_loop_handler.h" #include "mojo/public/cpp/utility/run_loop_handler.h"
namespace mojo { namespace mojo {
namespace { namespace {
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
#include "mojo/public/environment/environment.h" #include "mojo/public/environment/environment.h"
#include "mojo/public/cpp/utility/run_loop.h"
#include "mojo/public/environment/lib/buffer_tls_setup.h" #include "mojo/public/environment/lib/buffer_tls_setup.h"
#include "mojo/public/utility/run_loop.h"
namespace mojo { namespace mojo {
......
...@@ -6,10 +6,10 @@ ...@@ -6,10 +6,10 @@
#include "mojo/public/cpp/system/core.h" #include "mojo/public/cpp/system/core.h"
#include "mojo/public/cpp/system/macros.h" #include "mojo/public/cpp/system/macros.h"
#include "mojo/public/cpp/utility/run_loop.h"
#include "mojo/public/environment/default_async_waiter.h" #include "mojo/public/environment/default_async_waiter.h"
#include "mojo/public/environment/environment.h" #include "mojo/public/environment/environment.h"
#include "mojo/public/tests/test_utils.h" #include "mojo/public/tests/test_utils.h"
#include "mojo/public/utility/run_loop.h"
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
namespace mojo { namespace mojo {
......
include_rules = [
"+mojo/public/system",
]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment