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

Side by Side Diff: chromecast/base/BUILD.gn

Issue 1484713003: [Chromecast] Use ScopedTemp[File|Dir] in tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Fix bug in test fixture, add CHECK to ScopedTempFile::Read Created 5 years 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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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("//chrome/version.gni") # TODO layering violation! 5 import("//chrome/version.gni") # TODO layering violation!
6 import("//chromecast/chromecast.gni") 6 import("//chromecast/chromecast.gni")
7 import("//testing/test.gni") 7 import("//testing/test.gni")
8 8
9 # GYP target: chromecast.gyp:cast_base
9 source_set("base") { 10 source_set("base") {
10 sources = [ 11 sources = [
11 "android/dumpstate_writer.cc", 12 "android/dumpstate_writer.cc",
12 "android/dumpstate_writer.h", 13 "android/dumpstate_writer.h",
13 "android/system_time_change_notifier_android.cc", 14 "android/system_time_change_notifier_android.cc",
14 "android/system_time_change_notifier_android.h", 15 "android/system_time_change_notifier_android.h",
15 "cast_paths.cc", 16 "cast_paths.cc",
16 "cast_paths.h", 17 "cast_paths.h",
17 "cast_resource.cc", 18 "cast_resource.cc",
18 "cast_resource.h", 19 "cast_resource.h",
(...skipping 21 matching lines...) Expand all
40 public_deps = [ 41 public_deps = [
41 "//chromecast/base/metrics", 42 "//chromecast/base/metrics",
42 "//chromecast/public", 43 "//chromecast/public",
43 ] 44 ]
44 45
45 deps = [ 46 deps = [
46 "//base", 47 "//base",
47 ] 48 ]
48 } 49 }
49 50
51 # GYP target: n/a
52 source_set("test_support") {
53 sources = [
54 "scoped_temp_file.cc",
55 "scoped_temp_file.h",
56 ]
57
58 public_deps = [
59 ":base",
60 "//base",
61 ]
62 }
63
64 # GYP target: chromecast_tests.gypi:cast_base_unittests
50 test("cast_base_unittests") { 65 test("cast_base_unittests") {
51 sources = [ 66 sources = [
52 "device_capabilities_impl_unittest.cc", 67 "device_capabilities_impl_unittest.cc",
53 "error_codes_unittest.cc", 68 "error_codes_unittest.cc",
54 "path_utils_unittest.cc", 69 "path_utils_unittest.cc",
55 "process_utils_unittest.cc", 70 "process_utils_unittest.cc",
56 "serializers_unittest.cc", 71 "serializers_unittest.cc",
57 "system_time_change_notifier_unittest.cc", 72 "system_time_change_notifier_unittest.cc",
58 ] 73 ]
59 74
60 deps = [ 75 deps = [
61 ":base", 76 ":test_support",
62 "//base",
63 "//base/test:run_all_unittests", 77 "//base/test:run_all_unittests",
64 "//base/test:test_support", 78 "//base/test:test_support",
65 "//testing/gmock", 79 "//testing/gmock",
66 "//testing/gtest", 80 "//testing/gtest",
67 ] 81 ]
68 } 82 }
69 83
70 source_set("cast_sys_info") { 84 source_set("cast_sys_info") {
71 sources = [ 85 sources = [
72 "cast_sys_info_dummy.cc", 86 "cast_sys_info_dummy.cc",
(...skipping 24 matching lines...) Expand all
97 "-e", 111 "-e",
98 "CAST_BUILD_INCREMENTAL=20150608.181153", 112 "CAST_BUILD_INCREMENTAL=20150608.181153",
99 "-e", 113 "-e",
100 "CAST_BUILD_RELEASE=1.15", 114 "CAST_BUILD_RELEASE=1.15",
101 "-e", 115 "-e",
102 "CAST_IS_DEBUG_BUILD=1", 116 "CAST_IS_DEBUG_BUILD=1",
103 "-e", 117 "-e",
104 "CAST_PRODUCT_TYPE=0", 118 "CAST_PRODUCT_TYPE=0",
105 ] 119 ]
106 } 120 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698