| # Copyright 2015 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//components/variations/service/generate_ui_string_overrider.gni") |
| |
| source_set("variations") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "ios_chrome_variations_service_client.h", |
| "ios_chrome_variations_service_client.mm", |
| ] |
| deps = [ |
| "//base", |
| "//components/variations/service", |
| "//components/version_info", |
| "//ios/chrome/browser", |
| "//ios/chrome/common", |
| "//ios/web", |
| ] |
| } |
| |
| generate_ui_string_overrider("ios_chrome_ui_string_overrider_factory") { |
| inputs = [ |
| "$root_gen_dir/components/strings/grit/components_chromium_strings.h", |
| "$root_gen_dir/components/strings/grit/components_google_chrome_strings.h", |
| "$root_gen_dir/components/strings/grit/components_locale_settings.h", |
| "$root_gen_dir/components/strings/grit/components_strings.h", |
| "$root_gen_dir/ios/chrome/grit/ios_chromium_strings.h", |
| "$root_gen_dir/ios/chrome/grit/ios_google_chrome_strings.h", |
| "$root_gen_dir/ios/chrome/grit/ios_strings.h", |
| ] |
| deps = [ |
| "//components/strings:components_chromium_strings", |
| "//components/strings:components_google_chrome_strings", |
| "//components/strings:components_locale_settings", |
| "//components/strings:components_strings", |
| "//ios/chrome/app/strings:ios_chromium_strings", |
| "//ios/chrome/app/strings:ios_google_chrome_strings", |
| "//ios/chrome/app/strings:ios_strings", |
| ] |
| namespace = "" # Put the functions in the global namespace on iOS. |
| header_filename = "ios_ui_string_overrider_factory.h" |
| source_filename = "ios_ui_string_overrider_factory.cc" |
| } |
| |
| source_set("eg_app_support+eg2") { |
| configs += [ |
| "//build/config/compiler:enable_arc", |
| "//build/config/ios:xctest_config", |
| ] |
| testonly = true |
| sources = [ |
| "variations_app_interface.h", |
| "variations_app_interface.mm", |
| ] |
| deps = [ |
| "//base", |
| "//base/test:test_support", |
| "//components/metrics", |
| "//components/prefs", |
| "//components/variations", |
| "//components/variations:test_support", |
| "//ios/chrome/browser", |
| "//ios/chrome/test/app:test_support", |
| ] |
| } |
| |
| source_set("eg_test_support+eg2") { |
| configs += [ |
| "//build/config/compiler:enable_arc", |
| "//build/config/ios:xctest_config", |
| ] |
| testonly = true |
| sources = [ |
| "variations_app_interface.h", |
| "variations_app_interface_stub.mm", |
| ] |
| deps = [ |
| "//base", |
| "//ios/third_party/earl_grey2:test_lib", |
| ] |
| } |
| |
| source_set("eg2_tests") { |
| configs += [ |
| "//build/config/compiler:enable_arc", |
| "//build/config/ios:xctest_config", |
| ] |
| testonly = true |
| sources = [ |
| "variations_safe_mode_egtest.mm", |
| "variations_safe_mode_end_to_end_egtest.mm", |
| ] |
| deps = [ |
| ":eg_test_support+eg2", |
| "//base", |
| "//base/test:test_support", |
| "//components/metrics:metrics", |
| "//components/prefs:prefs", |
| "//components/variations:test_support", |
| "//components/variations:variations", |
| "//components/variations/service:service", |
| "//ios/chrome/test/earl_grey:eg_test_support+eg2", |
| "//ios/testing/earl_grey:eg_test_support+eg2", |
| "//ios/third_party/earl_grey2:test_lib", |
| ] |
| frameworks = [ "UIKit.framework" ] |
| } |