Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 if (is_android) { | |
| 6 import("//build/config/android/config.gni") | |
| 7 import("//build/config/android/rules.gni") | |
| 8 } | |
| 9 | |
| 5 config("system_config") { | 10 config("system_config") { |
| 6 defines = [ | 11 defines = [ |
| 7 # Ensures that dependent projects import the core functions on Windows. | 12 # Ensures that dependent projects import the core functions on Windows. |
| 8 "MOJO_USE_SYSTEM_IMPL", | 13 "MOJO_USE_SYSTEM_IMPL", |
| 9 ] | 14 ] |
| 10 } | 15 } |
| 11 | 16 |
| 12 component("system") { | 17 component("system") { |
| 13 output_name = "mojo_system_impl" | 18 output_name = "mojo_system_impl" |
| 14 | 19 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 92 ] | 97 ] |
| 93 | 98 |
| 94 deps = [ | 99 deps = [ |
| 95 "//base", | 100 "//base", |
| 96 "//base/third_party/dynamic_annotations", | 101 "//base/third_party/dynamic_annotations", |
| 97 ] | 102 ] |
| 98 | 103 |
| 99 allow_circular_includes_from = [ "//mojo/edk/embedder" ] | 104 allow_circular_includes_from = [ "//mojo/edk/embedder" ] |
| 100 } | 105 } |
| 101 | 106 |
| 102 # GYP version: mojo/edk/mojo_edk.gyp:mojo_system_unittests | |
| 103 test("mojo_system_unittests") { | 107 test("mojo_system_unittests") { |
| 104 sources = [ | 108 sources = [ |
| 105 "../test/multiprocess_test_helper_unittest.cc", | |
| 106 "channel_endpoint_id_unittest.cc", | 109 "channel_endpoint_id_unittest.cc", |
| 107 "channel_manager_unittest.cc", | 110 "channel_manager_unittest.cc", |
| 108 "channel_unittest.cc", | 111 "channel_unittest.cc", |
| 109 "core_test_base.cc", | 112 "core_test_base.cc", |
| 110 "core_test_base.h", | 113 "core_test_base.h", |
| 111 "core_unittest.cc", | 114 "core_unittest.cc", |
| 112 "data_pipe_unittest.cc", | 115 "data_pipe_unittest.cc", |
| 113 "dispatcher_unittest.cc", | 116 "dispatcher_unittest.cc", |
| 114 "local_data_pipe_unittest.cc", | 117 "local_data_pipe_unittest.cc", |
| 115 "memory_unittest.cc", | 118 "memory_unittest.cc", |
| 116 "message_pipe_dispatcher_unittest.cc", | 119 "message_pipe_dispatcher_unittest.cc", |
| 117 "message_pipe_test_utils.cc", | |
| 118 "message_pipe_test_utils.h", | |
| 119 "message_pipe_unittest.cc", | 120 "message_pipe_unittest.cc", |
| 120 "multiprocess_message_pipe_unittest.cc", | |
| 121 "options_validation_unittest.cc", | 121 "options_validation_unittest.cc", |
| 122 "platform_handle_dispatcher_unittest.cc", | 122 "platform_handle_dispatcher_unittest.cc", |
| 123 "raw_channel_unittest.cc", | 123 "raw_channel_unittest.cc", |
| 124 "remote_message_pipe_unittest.cc", | 124 "remote_message_pipe_unittest.cc", |
| 125 "run_all_unittests.cc", | 125 "run_all_unittests.cc", |
| 126 "shared_buffer_dispatcher_unittest.cc", | 126 "shared_buffer_dispatcher_unittest.cc", |
| 127 "simple_dispatcher_unittest.cc", | 127 "simple_dispatcher_unittest.cc", |
| 128 # TODO(vtl): Factor test_utils.* into their own source set. | 128 # TODO(vtl): Factor test_utils.* into their own source set. |
| 129 "test_utils.cc", | 129 "test_utils.cc", |
| 130 "test_utils.h", | 130 "test_utils.h", |
| 131 "waiter_list_unittest.cc", | 131 "waiter_list_unittest.cc", |
| 132 "waiter_test_utils.cc", | 132 "waiter_test_utils.cc", |
| 133 "waiter_test_utils.h", | 133 "waiter_test_utils.h", |
| 134 "waiter_unittest.cc", | 134 "waiter_unittest.cc", |
| 135 ] | 135 ] |
| 136 | 136 |
| 137 if (!is_android) { | |
| 138 sources += [ | |
| 139 "../test/multiprocess_test_helper_unittest.cc", | |
|
viettrungluu
2014/11/21 22:18:41
Are there compilation problems?
I'd rather not do
qsr
2014/11/24 12:00:48
Done.
| |
| 140 "message_pipe_test_utils.cc", | |
| 141 "message_pipe_test_utils.h", | |
| 142 "multiprocess_message_pipe_unittest.cc", | |
| 143 ] | |
| 144 } | |
| 145 | |
| 137 deps = [ | 146 deps = [ |
| 138 ":system", | 147 ":system", |
| 139 "//base", | 148 "//base", |
| 140 "//base/test:test_support", | 149 "//base/test:test_support", |
| 141 "//mojo/edk/embedder:embedder_unittests", | 150 "//mojo/edk/embedder:embedder_unittests", |
| 142 "//mojo/edk/test:test_support", | 151 "//mojo/edk/test:test_support", |
| 143 "//testing/gtest", | 152 "//testing/gtest", |
| 144 ] | 153 ] |
| 145 | 154 |
| 155 if (is_android) { | |
| 156 deps += [ | |
| 157 "//testing/android:native_test_native_code", | |
| 158 ] | |
| 159 } | |
| 160 | |
| 146 allow_circular_includes_from = [ "//mojo/edk/embedder:embedder_unittests" ] | 161 allow_circular_includes_from = [ "//mojo/edk/embedder:embedder_unittests" ] |
| 147 } | 162 } |
| 148 | 163 |
| 149 # GYP version: mojo/edk/mojo_edk.gyp:mojo_message_pipe_perftests | |
| 150 test("mojo_message_pipe_perftests") { | 164 test("mojo_message_pipe_perftests") { |
| 151 sources = [ | 165 sources = [ |
| 152 "message_pipe_perftest.cc", | |
| 153 "message_pipe_test_utils.h", | |
| 154 "message_pipe_test_utils.cc", | |
| 155 "test_utils.cc", | 166 "test_utils.cc", |
| 156 "test_utils.h", | 167 "test_utils.h", |
| 157 ] | 168 ] |
| 158 | 169 |
| 170 if (!is_android) { | |
| 171 sources += [ | |
| 172 "message_pipe_perftest.cc", | |
| 173 "message_pipe_test_utils.h", | |
| 174 "message_pipe_test_utils.cc", | |
| 175 ] | |
| 176 } | |
| 177 | |
| 159 deps = [ | 178 deps = [ |
| 160 ":system", | 179 ":system", |
| 161 "//base", | 180 "//base", |
| 162 "//base/test:test_support", | 181 "//base/test:test_support", |
| 163 "//base/test:test_support_perf", | 182 "//base/test:test_support_perf", |
| 164 "//mojo/edk/test:test_support", | 183 "//mojo/edk/test:test_support", |
| 165 "//testing/gtest", | 184 "//testing/gtest", |
| 166 ] | 185 ] |
| 167 } | 186 } |
| 187 | |
| 188 if (is_android) { | |
| 189 unittest_apk("mojo_system_unittests_apk") { | |
| 190 deps = [ | |
| 191 ":mojo_system_unittests", | |
| 192 ] | |
| 193 unittests_dep = ":mojo_system_unittests" | |
| 194 } | |
| 195 } | |
| OLD | NEW |