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 GN build and add java dependency to components/test/DEPS 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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 output = "$root_out_dir/components_tests_resources.pak" 327 output = "$root_out_dir/components_tests_resources.pak"
328 328
329 deps = [ 329 deps = [
330 "//components/resources", 330 "//components/resources",
331 "//components/strings", 331 "//components/strings",
332 "//ui/resources", 332 "//ui/resources",
333 "//ui/strings", 333 "//ui/strings",
334 ] 334 ]
335 } 335 }
336 336
337 if (is_android) {
338 import("//build/config/android/rules.gni")
339
340 generate_jni("components_browsertests_jni_headers") {
341 jni_package = "components_browsertests/shell"
342 sources = [
343 "test/android/browsertests_apk/src/org/chromium/components_browsertests_ap k/ComponentsBrowserTestsActivity.java",
344 ]
345 }
346 }
347
337 test("components_browsertests") { 348 test("components_browsertests") {
338 sources = [ 349 sources = [
339 "autofill/content/browser/risk/fingerprint_browsertest.cc", 350 "autofill/content/browser/risk/fingerprint_browsertest.cc",
340 "autofill/content/renderer/password_form_conversion_utils_browsertest.cc", 351 "autofill/content/renderer/password_form_conversion_utils_browsertest.cc",
341 "dom_distiller/content/distillable_page_utils_browsertest.cc", 352 "dom_distiller/content/distillable_page_utils_browsertest.cc",
342 "dom_distiller/content/distiller_page_web_contents_browsertest.cc", 353 "dom_distiller/content/distiller_page_web_contents_browsertest.cc",
343 "password_manager/content/renderer/credential_manager_client_browsertest.cc" , 354 "password_manager/content/renderer/credential_manager_client_browsertest.cc" ,
344 ] 355 ]
345 356
346 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] 357 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
(...skipping 15 matching lines...) Expand all
362 "//content/test:test_support", 373 "//content/test:test_support",
363 374
364 "//testing/gmock", 375 "//testing/gmock",
365 "//testing/gtest", 376 "//testing/gtest",
366 "//ui/base", 377 "//ui/base",
367 ] 378 ]
368 379
369 data_deps = [ ":components_tests_pak" ] 380 data_deps = [ ":components_tests_pak" ]
370 381
371 if (is_android) { 382 if (is_android) {
383 sources += [
384 "test/android/browsertests_apk/components_browser_tests_android.cc",
385 "test/android/browsertests_apk/components_browser_tests_android.h",
386 "test/android/browsertests_apk/components_browser_tests_jni_onload.cc",
387 ]
372 sources -= [ "autofill/content/browser/risk/fingerprint_browsertest.cc" ] 388 sources -= [ "autofill/content/browser/risk/fingerprint_browsertest.cc" ]
389 deps += [
390 ":components_browsertests_jni_headers",
391 "//testing/android/native_test:native_test_util",
392 ]
393
394 use_launcher = false
373 } 395 }
374 396
375 if (is_linux) { 397 if (is_linux) {
376 # content_extractor_browsertest is a standalone content extraction tool buil t as 398 # content_extractor_browsertest is a standalone content extraction tool buil t as
377 # a MANUAL component_browsertest. 399 # a MANUAL component_browsertest.
378 sources += [ "dom_distiller/standalone/content_extractor_browsertest.cc" ] 400 sources += [ "dom_distiller/standalone/content_extractor_browsertest.cc" ]
379 deps += [ 401 deps += [
380 "pref_registry:test_support", 402 "pref_registry:test_support",
381 "//base:prefs_test_support", 403 "//base:prefs_test_support",
382 ] 404 ]
(...skipping 11 matching lines...) Expand all
394 416
395 deps = [ 417 deps = [
396 "//base", 418 "//base",
397 "//base/test:test_support_perf", 419 "//base/test:test_support_perf",
398 "//testing/gtest", 420 "//testing/gtest",
399 "//testing/perf", 421 "//testing/perf",
400 "//content/test:test_support", 422 "//content/test:test_support",
401 "//components/visitedlink/browser", 423 "//components/visitedlink/browser",
402 ] 424 ]
403 } 425 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698