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

Side by Side Diff: components/BUILD.gn

Issue 1075783002: Enable components_browsertests on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix DistillerPageWebContentsTest and DomDistillerDistillablePageUtilsTest Created 5 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
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/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 import("//testing/test.gni") 7 import("//testing/test.gni")
8 import("//tools/grit/repack.gni") 8 import("//tools/grit/repack.gni")
9 9
10 # Collection of all components. You wouldn't link to this, but this is rather 10 # Collection of all components. You wouldn't link to this, but this is rather
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 output = "$root_out_dir/components_tests_resources.pak" 303 output = "$root_out_dir/components_tests_resources.pak"
304 304
305 deps = [ 305 deps = [
306 "//components/resources", 306 "//components/resources",
307 "//components/strings", 307 "//components/strings",
308 "//ui/resources", 308 "//ui/resources",
309 "//ui/strings", 309 "//ui/strings",
310 ] 310 ]
311 } 311 }
312 312
313 if (is_android) {
314 import("//build/config/android/rules.gni")
315
316 generate_jni("components_browsertests_jni_headers") {
317 jni_package = "components_browsertests/shell"
318 sources = [
319 "test/android/browsertests_apk/src/org/chromium/components_browsertests_ap k/ComponentsBrowserTestsActivity.java",
320 ]
321 }
322 }
323
313 test("components_browsertests") { 324 test("components_browsertests") {
314 sources = [ 325 sources = [
315 "autofill/content/browser/risk/fingerprint_browsertest.cc", 326 "autofill/content/browser/risk/fingerprint_browsertest.cc",
316 "autofill/content/renderer/password_form_conversion_utils_browsertest.cc", 327 "autofill/content/renderer/password_form_conversion_utils_browsertest.cc",
317 "dom_distiller/content/distillable_page_utils_browsertest.cc", 328 "dom_distiller/content/distillable_page_utils_browsertest.cc",
318 "dom_distiller/content/distiller_page_web_contents_browsertest.cc", 329 "dom_distiller/content/distiller_page_web_contents_browsertest.cc",
319 "password_manager/content/renderer/credential_manager_client_browsertest.cc" , 330 "password_manager/content/renderer/credential_manager_client_browsertest.cc" ,
320 ] 331 ]
321 332
322 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] 333 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
(...skipping 15 matching lines...) Expand all
338 "//content/test:test_support", 349 "//content/test:test_support",
339 350
340 "//testing/gmock", 351 "//testing/gmock",
341 "//testing/gtest", 352 "//testing/gtest",
342 "//ui/base", 353 "//ui/base",
343 ] 354 ]
344 355
345 data_deps = [ ":components_tests_pak" ] 356 data_deps = [ ":components_tests_pak" ]
346 357
347 if (is_android) { 358 if (is_android) {
359 sources += [
360 "test/android/browsertests_apk/components_browser_tests_android.cc",
361 "test/android/browsertests_apk/components_browser_tests_android.h",
362 "test/android/browsertests_apk/components_browser_tests_jni_onload.cc",
363 ]
348 sources -= [ "autofill/content/browser/risk/fingerprint_browsertest.cc" ] 364 sources -= [ "autofill/content/browser/risk/fingerprint_browsertest.cc" ]
365 deps += [
366 ":components_browsertests_jni_headers",
367 "//testing/android:native_test_util",
368 ]
369
370 use_launcher = false
349 } 371 }
350 372
351 if (is_linux) { 373 if (is_linux) {
352 # content_extractor_browsertest is a standalone content extraction tool buil t as 374 # content_extractor_browsertest is a standalone content extraction tool buil t as
353 # a MANUAL component_browsertest. 375 # a MANUAL component_browsertest.
354 sources += [ "dom_distiller/standalone/content_extractor_browsertest.cc" ] 376 sources += [ "dom_distiller/standalone/content_extractor_browsertest.cc" ]
355 deps += [ 377 deps += [
356 "pref_registry:test_support", 378 "pref_registry:test_support",
357 "//base:prefs_test_support", 379 "//base:prefs_test_support",
358 ] 380 ]
359 } 381 }
360 } 382 }
361 383
362 test("components_perftests") { 384 test("components_perftests") {
363 sources = [ 385 sources = [
364 "visitedlink/test/visitedlink_perftest.cc", 386 "visitedlink/test/visitedlink_perftest.cc",
365 ] 387 ]
366 388
367 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 389 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
368 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 390 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
369 391
370 deps = [ 392 deps = [
371 "//base", 393 "//base",
372 "//base/test:test_support_perf", 394 "//base/test:test_support_perf",
373 "//testing/gtest", 395 "//testing/gtest",
374 "//content/test:test_support", 396 "//content/test:test_support",
375 "//components/visitedlink/browser", 397 "//components/visitedlink/browser",
376 ] 398 ]
377 } 399 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698