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

Side by Side Diff: components/BUILD.gn

Issue 1126543009: [Android] Refactor the native test wrappers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 output = "$root_out_dir/components_tests_resources.pak" 337 output = "$root_out_dir/components_tests_resources.pak"
338 338
339 deps = [ 339 deps = [
340 "//components/resources", 340 "//components/resources",
341 "//components/strings", 341 "//components/strings",
342 "//ui/resources", 342 "//ui/resources",
343 "//ui/strings", 343 "//ui/strings",
344 ] 344 ]
345 } 345 }
346 346
347 if (is_android) {
348 import("//build/config/android/rules.gni")
349
350 generate_jni("components_browsertests_jni_headers") {
351 jni_package = "components_browsertests/shell"
352 sources = [
353 "test/android/browsertests_apk/src/org/chromium/components_browsertests_ap k/ComponentsBrowserTestsActivity.java",
354 ]
355 }
356 }
357
358 test("components_browsertests") { 347 test("components_browsertests") {
359 sources = [ 348 sources = [
360 "autofill/content/browser/risk/fingerprint_browsertest.cc", 349 "autofill/content/browser/risk/fingerprint_browsertest.cc",
361 "autofill/content/renderer/password_form_conversion_utils_browsertest.cc", 350 "autofill/content/renderer/password_form_conversion_utils_browsertest.cc",
362 "dom_distiller/content/distillable_page_utils_browsertest.cc", 351 "dom_distiller/content/distillable_page_utils_browsertest.cc",
363 "dom_distiller/content/distiller_page_web_contents_browsertest.cc", 352 "dom_distiller/content/distiller_page_web_contents_browsertest.cc",
364 "password_manager/content/renderer/credential_manager_client_browsertest.cc" , 353 "password_manager/content/renderer/credential_manager_client_browsertest.cc" ,
365 ] 354 ]
366 355
367 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] 356 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
(...skipping 23 matching lines...) Expand all
391 380
392 if (is_android) { 381 if (is_android) {
393 sources += [ 382 sources += [
394 "test/android/browsertests_apk/components_browser_tests_android.cc", 383 "test/android/browsertests_apk/components_browser_tests_android.cc",
395 "test/android/browsertests_apk/components_browser_tests_android.h", 384 "test/android/browsertests_apk/components_browser_tests_android.h",
396 "test/android/browsertests_apk/components_browser_tests_jni_onload.cc", 385 "test/android/browsertests_apk/components_browser_tests_jni_onload.cc",
397 ] 386 ]
398 sources -= [ "autofill/content/browser/risk/fingerprint_browsertest.cc" ] 387 sources -= [ "autofill/content/browser/risk/fingerprint_browsertest.cc" ]
399 deps += [ 388 deps += [
400 ":components_browsertests_jni_headers", 389 ":components_browsertests_jni_headers",
401 "//testing/android/native_test:native_test_util", 390 "//testing/android/native_test:native_test_support",
402 ] 391 ]
403 392
404 use_launcher = false 393 use_launcher = false
405 } 394 }
406 395
407 if (is_linux) { 396 if (is_linux) {
408 # content_extractor_browsertest is a standalone content extraction tool buil t as 397 # content_extractor_browsertest is a standalone content extraction tool buil t as
409 # a MANUAL component_browsertest. 398 # a MANUAL component_browsertest.
410 sources += [ "dom_distiller/standalone/content_extractor_browsertest.cc" ] 399 sources += [ "dom_distiller/standalone/content_extractor_browsertest.cc" ]
411 deps += [ 400 deps += [
(...skipping 14 matching lines...) Expand all
426 415
427 deps = [ 416 deps = [
428 "//base", 417 "//base",
429 "//base/test:test_support_perf", 418 "//base/test:test_support_perf",
430 "//testing/gtest", 419 "//testing/gtest",
431 "//testing/perf", 420 "//testing/perf",
432 "//content/test:test_support", 421 "//content/test:test_support",
433 "//components/visitedlink/browser", 422 "//components/visitedlink/browser",
434 ] 423 ]
435 } 424 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698