Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(527)

Side by Side Diff: chrome/test/BUILD.gn

Issue 1681263003: metrics: Add leak detector controller in Chrome OS metrics system (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use new build flag generation system; Define var 'enable_leak_detector' locally Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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("//build/config/chrome_build.gni") 5 import("//build/config/chrome_build.gni")
6 import("//build/config/compiler/compiler.gni") 6 import("//build/config/compiler/compiler.gni")
7 import("//build/config/crypto.gni") 7 import("//build/config/crypto.gni")
8 import("//build/config/features.gni") 8 import("//build/config/features.gni")
9 import("//build/config/ui.gni") 9 import("//build/config/ui.gni")
10 import("//chrome/chrome_tests.gni") 10 import("//chrome/chrome_tests.gni")
11 import("//chrome/test/base/js2gtest.gni") 11 import("//chrome/test/base/js2gtest.gni")
12 import("//components/metrics/leak_detector/leak_detector.gni")
12 import("//testing/test.gni") 13 import("//testing/test.gni")
13 14
14 if (is_android) { 15 if (is_android) {
15 import("//build/config/android/rules.gni") 16 import("//build/config/android/rules.gni")
16 } 17 }
17 18
18 # This target exists to reference other test executables to bring these files 19 # This target exists to reference other test executables to bring these files
19 # into the build. 20 # into the build.
20 group("test") { 21 group("test") {
21 testonly = true 22 testonly = true
(...skipping 1849 matching lines...) Expand 10 before | Expand all | Expand 10 after
1871 ".", 1872 ".",
1872 "//chrome") 1873 "//chrome")
1873 } 1874 }
1874 if (is_chromeos) { 1875 if (is_chromeos) {
1875 deps += [ 1876 deps += [
1876 "//chrome/browser/chromeos:unit_tests", 1877 "//chrome/browser/chromeos:unit_tests",
1877 "//chromeos/ime:gencode", 1878 "//chromeos/ime:gencode",
1878 ] 1879 ]
1879 sources -= [ "../browser/signin/signin_manager_unittest.cc" ] 1880 sources -= [ "../browser/signin/signin_manager_unittest.cc" ]
1880 } 1881 }
1882 if (is_chromeos && enable_leak_detector) {
1883 sources += [ "../browser/metrics/leak_detector_controller_unittest.cc" ]
1884 }
1881 if (use_x11) { 1885 if (use_x11) {
1882 deps += [ "//ui/events/devices" ] 1886 deps += [ "//ui/events/devices" ]
1883 data_deps += [ "//tools/xdisplaycheck" ] 1887 data_deps += [ "//tools/xdisplaycheck" ]
1884 } else { 1888 } else {
1885 sources -= [ "../browser/password_manager/password_store_x_unittest.cc" ] 1889 sources -= [ "../browser/password_manager/password_store_x_unittest.cc" ]
1886 } 1890 }
1887 if (cld_version == 2) { 1891 if (cld_version == 2) {
1888 # Unit tests should be independent of the CLD2 access mechanism, just use 1892 # Unit tests should be independent of the CLD2 access mechanism, just use
1889 # static for simplicity. 1893 # static for simplicity.
1890 deps += [ "//third_party/cld_2:cld2_static" ] 1894 deps += [ "//third_party/cld_2:cld2_static" ]
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
2223 if (is_android) { 2227 if (is_android) {
2224 android_library("unit_tests_java") { 2228 android_library("unit_tests_java") {
2225 DEPRECATED_java_in_dir = "//chrome/test/android/unit_tests_apk/src" 2229 DEPRECATED_java_in_dir = "//chrome/test/android/unit_tests_apk/src"
2226 deps = [ 2230 deps = [
2227 "//base:base_java", 2231 "//base:base_java",
2228 "//chrome/android:chrome_java", 2232 "//chrome/android:chrome_java",
2229 "//content/public/android:content_java", 2233 "//content/public/android:content_java",
2230 ] 2234 ]
2231 } 2235 }
2232 } 2236 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698