| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
| 6 | 6 |
| 7 if (is_android) { | 7 if (is_android) { |
| 8 import("//build/config/android/rules.gni") | 8 import("//build/config/android/rules.gni") |
| 9 } | 9 } |
| 10 | 10 |
| 11 # GYP: //base/base.gyp:test_support_base | 11 # GYP: //base/base.gyp:test_support_base |
| 12 source_set("test_support") { | 12 source_set("test_support") { |
| 13 # TODO http://crbug.com/412064 enable this flag all the time. | 13 # TODO http://crbug.com/412064 enable this flag all the time. |
| 14 testonly = !is_component_build | 14 testonly = !is_component_build |
| 15 sources = [ | 15 sources = [ |
| 16 "expectations/expectation.cc", | 16 "expectations/expectation.cc", |
| 17 "expectations/expectation.h", | 17 "expectations/expectation.h", |
| 18 "expectations/parser.cc", | 18 "expectations/parser.cc", |
| 19 "expectations/parser.h", | 19 "expectations/parser.h", |
| 20 "gtest_util.cc", |
| 21 "gtest_util.h", |
| 20 "gtest_xml_util.cc", | 22 "gtest_xml_util.cc", |
| 21 "gtest_xml_util.h", | 23 "gtest_xml_util.h", |
| 22 "histogram_tester.cc", | 24 "histogram_tester.cc", |
| 23 "histogram_tester.h", | 25 "histogram_tester.h", |
| 24 "launcher/test_launcher.cc", | 26 "launcher/test_launcher.cc", |
| 25 "launcher/test_launcher.h", | 27 "launcher/test_launcher.h", |
| 26 "launcher/test_result.cc", | 28 "launcher/test_result.cc", |
| 27 "launcher/test_result.h", | 29 "launcher/test_result.h", |
| 28 "launcher/test_results_tracker.cc", | 30 "launcher/test_results_tracker.cc", |
| 29 "launcher/test_results_tracker.h", | 31 "launcher/test_results_tracker.h", |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 108 |
| 107 public_deps = [ | 109 public_deps = [ |
| 108 "//base", | 110 "//base", |
| 109 "//base:i18n", | 111 "//base:i18n", |
| 110 "//base:base_static", | 112 "//base:base_static", |
| 111 ] | 113 ] |
| 112 deps = [ | 114 deps = [ |
| 113 "//base/third_party/dynamic_annotations", | 115 "//base/third_party/dynamic_annotations", |
| 114 "//testing/gmock", | 116 "//testing/gmock", |
| 115 "//testing/gtest", | 117 "//testing/gtest", |
| 116 "//third_party/libxml" | 118 "//third_party/libxml", |
| 117 ] | 119 ] |
| 118 | 120 |
| 119 if (!is_posix) { | 121 if (!is_posix) { |
| 120 sources -= [ | 122 sources -= [ |
| 121 "scoped_locale.cc", | 123 "scoped_locale.cc", |
| 122 "scoped_locale.h", | 124 "scoped_locale.h", |
| 123 ] | 125 ] |
| 124 } | 126 } |
| 125 if (is_ios) { | 127 if (is_ios) { |
| 126 # iOS uses its own unit test launcher. | 128 # iOS uses its own unit test launcher. |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 } | 168 } |
| 167 | 169 |
| 168 if (is_android) { | 170 if (is_android) { |
| 169 generate_jni("base_unittests_jni_headers") { | 171 generate_jni("base_unittests_jni_headers") { |
| 170 sources = [ | 172 sources = [ |
| 171 "android/java/src/org/chromium/base/ContentUriTestUtils.java", | 173 "android/java/src/org/chromium/base/ContentUriTestUtils.java", |
| 172 ] | 174 ] |
| 173 jni_package = "base" | 175 jni_package = "base" |
| 174 } | 176 } |
| 175 } | 177 } |
| OLD | NEW |