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

Side by Side Diff: components/cronet/android/BUILD.gn

Issue 1533353002: GN: asset_location -> android_assets() for cronet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: list out files 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
« no previous file with comments | « no previous file | no next file » | 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("//build/config/android/rules.gni") 5 import("//build/config/android/rules.gni")
6 import("//build/util/version.gni") 6 import("//build/util/version.gni")
7 import("//chrome/version.gni") 7 import("//chrome/version.gni")
8 import("//testing/test.gni") 8 import("//testing/test.gni")
9 9
10 assert(!is_component_build, "Cronet requires static library build.") 10 assert(!is_component_build, "Cronet requires static library build.")
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 DEPRECATED_java_in_dir = "test/src" 402 DEPRECATED_java_in_dir = "test/src"
403 403
404 deps = [ 404 deps = [
405 ":cronet_api", 405 ":cronet_api",
406 ":cronet_java", 406 ":cronet_java",
407 "//base:base_java", 407 "//base:base_java",
408 "//net/android:net_java_test_support", 408 "//net/android:net_java_test_support",
409 ] 409 ]
410 } 410 }
411 411
412 android_assets("cronet_test_apk_assets") {
mef 2015/12/21 18:21:31 should have testonly = true
agrieve 2015/12/21 18:55:35 Done.
413 # Need to use renaming_sources to maintain subdirectories.
414 renaming_sources = [
415 "test/assets/test/cacheable.txt",
416 "test/assets/test/multiredirect.html.mock-http-headers",
417 "test/assets/test/sdch/dict/LeQxM80O",
418 "test/assets/test/sdch/dict/LeQxM80O.mock-http-headers",
419 "test/assets/test/sdch/index",
420 "test/assets/test/sdch/LeQxM80O_encoded",
421 "test/assets/test/sdch/LeQxM80O_encoded.mock-http-headers",
422 "test/assets/test/sdch/index.mock-http-headers",
423 "test/assets/test/multiredirect.html",
mef 2015/12/21 18:21:31 could / should these be sorted alphabetically?
agrieve 2015/12/21 18:55:35 Done.
424 "test/assets/test/content_length_mismatch.html.mock-http-headers",
425 "test/assets/test/redirect.html",
426 "test/assets/test/notfound.html.mock-http-headers",
427 "test/assets/test/redirect_invalid_scheme.html",
428 "test/assets/test/redirect.html.mock-http-headers",
429 "test/assets/test/cacheable.txt.mock-http-headers",
430 "test/assets/test/success.txt",
431 "test/assets/test/datareductionproxysuccess.txt",
432 "test/assets/test/success.txt.mock-http-headers",
433 "test/assets/test/secureproxychecksuccess.txt.mock-http-headers",
434 "test/assets/test/secureproxychecksuccess.txt",
435 "test/assets/test/quic_data/simple.txt",
436 "test/assets/test/content_length_mismatch.html",
437 "test/assets/test/redirect_invalid_scheme.html.mock-http-headers",
438 "test/assets/test/datareductionproxysuccess.txt.mock-http-headers",
439 "test/assets/test/notfound.html",
440 ]
441 renaming_destinations = rebase_path(renaming_sources, "test/assets")
mef 2015/12/21 18:21:32 Could you clarify what how would this rename for e
agrieve 2015/12/21 18:55:35 Done.
442 }
443
412 android_apk("cronet_test_apk") { 444 android_apk("cronet_test_apk") {
413 testonly = true 445 testonly = true
414 apk_name = "CronetTest" 446 apk_name = "CronetTest"
415 android_manifest = "test/AndroidManifest.xml" 447 android_manifest = "test/AndroidManifest.xml"
416 native_libs = [ "libcronet_tests.so" ] 448 native_libs = [ "libcronet_tests.so" ]
417 asset_location = "test/assets"
418 449
419 deps = [ 450 deps = [
451 ":cronet_test_apk_assets",
420 ":cronet_test_apk_java", 452 ":cronet_test_apk_java",
421 ":cronet_test_apk_resources", 453 ":cronet_test_apk_resources",
422 ":cronet_tests", 454 ":cronet_tests",
423 "//base:base_java", 455 "//base:base_java",
424 ] 456 ]
425 457
426 run_findbugs = true 458 run_findbugs = true
427 } 459 }
428 460
429 instrumentation_test_apk("cronet_test_instrumentation_apk") { 461 instrumentation_test_apk("cronet_test_instrumentation_apk") {
(...skipping 24 matching lines...) Expand all
454 486
455 deps = [ 487 deps = [
456 ":cronet_static", 488 ":cronet_static",
457 "//base", 489 "//base",
458 "//base/test:test_support", 490 "//base/test:test_support",
459 "//components/metrics", 491 "//components/metrics",
460 "//net", 492 "//net",
461 "//testing/gtest", 493 "//testing/gtest",
462 ] 494 ]
463 } 495 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698