| 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 import("//testing/test.gni") | 5 import("//testing/test.gni") |
| 6 | 6 |
| 7 group("common") { | 7 group("common") { |
| 8 public_deps = [ | 8 public_deps = [ |
| 9 ":common_base", | 9 ":common_base", |
| 10 ":url_type_converters", | 10 ":url_type_converters", |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 defines = [ "MOJO_COMMON_IMPLEMENTATION" ] | 30 defines = [ "MOJO_COMMON_IMPLEMENTATION" ] |
| 31 | 31 |
| 32 public_deps = [ | 32 public_deps = [ |
| 33 "//mojo/public/cpp/system", | 33 "//mojo/public/cpp/system", |
| 34 ] | 34 ] |
| 35 | 35 |
| 36 deps = [ | 36 deps = [ |
| 37 "//base", | 37 "//base", |
| 38 "//base/third_party/dynamic_annotations", | 38 "//base/third_party/dynamic_annotations", |
| 39 "//mojo/environment:chromium", | |
| 40 "//mojo/message_pump", | 39 "//mojo/message_pump", |
| 41 "//mojo/public/c/system:for_component", | 40 "//mojo/public/c/system:for_component", |
| 42 "//mojo/public/cpp/bindings", | 41 "//mojo/public/cpp/bindings", |
| 43 "//mojo/public/cpp/environment", | |
| 44 ] | 42 ] |
| 45 } | 43 } |
| 46 | 44 |
| 47 # GYP version: mojo/mojo_base.gyp:mojo_url_type_converters | 45 # GYP version: mojo/mojo_base.gyp:mojo_url_type_converters |
| 48 source_set("url_type_converters") { | 46 source_set("url_type_converters") { |
| 49 sources = [ | 47 sources = [ |
| 50 "url_type_converters.cc", | 48 "url_type_converters.cc", |
| 51 "url_type_converters.h", | 49 "url_type_converters.h", |
| 52 ] | 50 ] |
| 53 | 51 |
| 54 deps = [ | 52 deps = [ |
| 55 ":common_base", | 53 ":common_base", |
| 56 "//base", | 54 "//base", |
| 57 "//base/third_party/dynamic_annotations", | 55 "//base/third_party/dynamic_annotations", |
| 58 "//mojo/public/cpp/bindings", | 56 "//mojo/public/cpp/bindings", |
| 59 "//url", | 57 "//url", |
| 60 ] | 58 ] |
| 61 } | 59 } |
| 62 | 60 |
| 63 # GYP version: mojo/mojo_base.gyp:mojo_common_unittests | 61 # GYP version: mojo/mojo_base.gyp:mojo_common_unittests |
| 64 test("mojo_common_unittests") { | 62 test("mojo_common_unittests") { |
| 65 deps = [ | 63 deps = [ |
| 66 ":common", | 64 ":common", |
| 67 "//base", | 65 "//base", |
| 68 "//base:message_loop_tests", | 66 "//base:message_loop_tests", |
| 69 "//base/test:test_support", | 67 "//base/test:test_support", |
| 70 "//mojo/edk/test:run_all_unittests", | 68 "//mojo/edk/test:run_all_unittests", |
| 71 "//mojo/edk/test:test_support", | 69 "//mojo/edk/test:test_support", |
| 72 "//mojo/environment:chromium", | |
| 73 "//mojo/message_pump", | 70 "//mojo/message_pump", |
| 74 "//mojo/public/cpp/bindings", | 71 "//mojo/public/cpp/bindings", |
| 75 "//mojo/public/cpp/test_support:test_utils", | 72 "//mojo/public/cpp/test_support:test_utils", |
| 76 "//testing/gtest", | 73 "//testing/gtest", |
| 77 "//url", | 74 "//url", |
| 78 ] | 75 ] |
| 79 | 76 |
| 80 sources = [ | 77 sources = [ |
| 81 # The message_pump tests are so small and some what related to this code | 78 # The message_pump tests are so small and some what related to this code |
| 82 # that we put them here. | 79 # that we put them here. |
| 83 "../message_pump/handle_watcher_unittest.cc", | 80 "../message_pump/handle_watcher_unittest.cc", |
| 84 "../message_pump/message_pump_mojo_unittest.cc", | 81 "../message_pump/message_pump_mojo_unittest.cc", |
| 85 "common_type_converters_unittest.cc", | 82 "common_type_converters_unittest.cc", |
| 86 ] | 83 ] |
| 87 | 84 |
| 88 if (is_linux && !is_component_build) { | 85 if (is_linux && !is_component_build) { |
| 89 # This tests dynamically loads libmojo_test_support even in non-component | 86 # This tests dynamically loads libmojo_test_support even in non-component |
| 90 # builds. | 87 # builds. |
| 91 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] | 88 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] |
| 92 } | 89 } |
| 93 } | 90 } |
| 94 | 91 |
| 95 test("mojo_common_perftests") { | 92 test("mojo_common_perftests") { |
| 96 deps = [ | 93 deps = [ |
| 97 ":common", | 94 ":common", |
| 98 "//base", | 95 "//base", |
| 99 "//mojo/edk/test:run_all_perftests", | 96 "//mojo/edk/test:run_all_perftests", |
| 100 "//mojo/environment:chromium", | |
| 101 "//mojo/message_pump", | 97 "//mojo/message_pump", |
| 102 "//mojo/public/cpp/test_support:test_utils", | 98 "//mojo/public/cpp/test_support:test_utils", |
| 103 "//testing/gtest", | 99 "//testing/gtest", |
| 104 ] | 100 ] |
| 105 | 101 |
| 106 sources = [ | 102 sources = [ |
| 107 "../message_pump/handle_watcher_perftest.cc", | 103 "../message_pump/handle_watcher_perftest.cc", |
| 108 ] | 104 ] |
| 109 | 105 |
| 110 if (is_linux && !is_component_build) { | 106 if (is_linux && !is_component_build) { |
| 111 # This test dynamically loads libmojo_test_support even in non-component | 107 # This test dynamically loads libmojo_test_support even in non-component |
| 112 # builds. | 108 # builds. |
| 113 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] | 109 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ] |
| 114 } | 110 } |
| 115 } | 111 } |
| OLD | NEW |