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

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

Issue 1870443003: [Chromecast] Enable browser media tests to work on internal builds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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
« no previous file with comments | « no previous file | chromecast/browser/test/chromecast_browser_test.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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("//chromecast/chromecast.gni") 5 import("//chromecast/chromecast.gni")
6 import("//testing/test.gni") 6 import("//testing/test.gni")
7 import("//build/config/ui.gni") 7 import("//build/config/ui.gni")
8 8
9 if (is_android) { 9 if (is_android) {
10 import("//build/config/android/rules.gni") 10 import("//build/config/android/rules.gni")
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 deps += [ "//ui/ozone" ] 138 deps += [ "//ui/ozone" ]
139 } 139 }
140 } 140 }
141 141
142 source_set("test_support") { 142 source_set("test_support") {
143 testonly = true 143 testonly = true
144 144
145 sources = [ 145 sources = [
146 "test/chromecast_browser_test.cc", 146 "test/chromecast_browser_test.cc",
147 "test/chromecast_browser_test.h", 147 "test/chromecast_browser_test.h",
148 "test/chromecast_browser_test_helper.h",
148 "test/chromecast_browser_test_runner.cc", 149 "test/chromecast_browser_test_runner.cc",
149 ] 150 ]
150 151
152 if (chromecast_branding == "public") {
153 sources += [ "test/chromecast_browser_test_helper_default.cc" ]
154 }
155
151 public_deps = [ 156 public_deps = [
152 ":browser", 157 ":browser",
153 "//chromecast:cast_shell_common", 158 "//chromecast:cast_shell_common",
154 "//content/test:browsertest_base", 159 "//content/test:browsertest_base",
155 ] 160 ]
156 161
157 deps = [ 162 deps = [
158 "//base", 163 "//base",
159 "//chromecast/app", 164 "//chromecast/app",
160 "//chromecast/base", 165 "//chromecast/base",
(...skipping 22 matching lines...) Expand all
183 "//content/test:browsertest_base", 188 "//content/test:browsertest_base",
184 "//content/test:test_support", 189 "//content/test:test_support",
185 "//media/base:test_support", 190 "//media/base:test_support",
186 "//testing/gtest", 191 "//testing/gtest",
187 "//url", 192 "//url",
188 ] 193 ]
189 194
190 # TODO(slan): Find a better way to do this. 195 # TODO(slan): Find a better way to do this.
191 if (chromecast_branding != "public") { 196 if (chromecast_branding != "public") {
192 deps += [ "//chromecast/internal:cast_shell_internal" ] 197 deps += [ "//chromecast/internal:cast_shell_internal" ]
198 deps += [ "//chromecast/internal/shell:cast_shell_browser_test_helper_intern al" ]
193 } 199 }
194 200
195 if (chromecast_branding == "public") { 201 if (chromecast_branding == "public") {
196 # Link default libcast_media_1.0 statically not to link dummy one 202 # Link default libcast_media_1.0 statically not to link dummy one
197 # dynamically for public unittests. 203 # dynamically for public unittests.
198 deps += [ "//chromecast/media/base:libcast_media_1.0_default_core" ] 204 deps += [ "//chromecast/media/base:libcast_media_1.0_default_core" ]
199 } 205 }
200 } 206 }
201 207
202 if (is_android) { 208 if (is_android) {
203 generate_jni("jni_headers") { 209 generate_jni("jni_headers") {
204 sources = [ 210 sources = [
205 "android/apk/src/org/chromium/chromecast/shell/CastCrashHandler.java", 211 "android/apk/src/org/chromium/chromecast/shell/CastCrashHandler.java",
206 "android/apk/src/org/chromium/chromecast/shell/CastMetricsHelper.java", 212 "android/apk/src/org/chromium/chromecast/shell/CastMetricsHelper.java",
207 "android/apk/src/org/chromium/chromecast/shell/CastSysInfoAndroid.java", 213 "android/apk/src/org/chromium/chromecast/shell/CastSysInfoAndroid.java",
208 "android/apk/src/org/chromium/chromecast/shell/CastWindowAndroid.java", 214 "android/apk/src/org/chromium/chromecast/shell/CastWindowAndroid.java",
209 "android/apk/src/org/chromium/chromecast/shell/CastWindowManager.java", 215 "android/apk/src/org/chromium/chromecast/shell/CastWindowManager.java",
210 ] 216 ]
211 217
212 jni_package = "chromecast" 218 jni_package = "chromecast"
213 } 219 }
214 } 220 }
OLDNEW
« no previous file with comments | « no previous file | chromecast/browser/test/chromecast_browser_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698