Skip to content

Commit

Permalink
[iOS] Define bundle_data target for //google_apis:google_apis_unittests.
Browse files Browse the repository at this point in the history
This ensure that the files required by google_apis_unittests application
will be copied into the application bundle on iOS.

BUG=297668

Review URL: https://codereview.chromium.org/1811533005

Cr-Commit-Position: refs/heads/master@{#381935}
  • Loading branch information
sdefresne authored and Commit bot committed Mar 18, 2016
1 parent 34cfc87 commit 9cc8ac7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions google_apis/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,17 @@ source_set("test_support") {
}
}

bundle_data("google_apis_unittests_bundle_data") {
testonly = true
sources = [
"test",
]
outputs = [
"{{bundle_resources_dir}}/" +
"{{source_root_relative_dir}}/{{source_file_part}}",
]
}

test("google_apis_unittests") {
sources = [
"gaia/gaia_auth_fetcher_unittest.cc",
Expand All @@ -247,6 +258,7 @@ test("google_apis_unittests") {

deps = [
":google_apis",
":google_apis_unittests_bundle_data",
":test_support",
"//base",
"//base/test:run_all_unittests",
Expand Down

0 comments on commit 9cc8ac7

Please sign in to comment.