| # Copyright 2016 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. |
| |
| source_set("geolocation") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "CLLocation+OmniboxGeolocation.h", |
| "CLLocation+OmniboxGeolocation.mm", |
| "CLLocation+XGeoHeader.h", |
| "CLLocation+XGeoHeader.mm", |
| "location_manager+Testing.h", |
| "location_manager.h", |
| "location_manager.mm", |
| "omnibox_geolocation_authorization_alert.h", |
| "omnibox_geolocation_authorization_alert.mm", |
| "omnibox_geolocation_config.h", |
| "omnibox_geolocation_config.mm", |
| "omnibox_geolocation_local_state.h", |
| "omnibox_geolocation_local_state.mm", |
| ] |
| deps = [ |
| "//base", |
| "//components/prefs", |
| "//components/strings", |
| "//ios/chrome/app/strings", |
| "//ios/chrome/browser", |
| "//ios/public/provider/chrome/browser", |
| "//third_party/google_toolbox_for_mac", |
| "//ui/base", |
| "//url", |
| ] |
| libs = [ "CoreLocation.framework" ] |
| } |
| |
| source_set("test_support") { |
| testonly = true |
| sources = [ |
| "test_location_manager.h", |
| "test_location_manager.mm", |
| ] |
| deps = [ |
| ":geolocation", |
| "//base", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| testonly = true |
| sources = [ |
| "CLLocation+XGeoHeaderTest.mm", |
| "location_manager_unittest.mm", |
| "omnibox_geolocation_local_state_unittest.mm", |
| ] |
| deps = [ |
| ":geolocation", |
| "//base", |
| "//components/prefs:test_support", |
| "//ios/chrome/test:test_support", |
| "//ios/public/provider/chrome/browser", |
| "//testing/gtest", |
| "//third_party/ocmock", |
| ] |
| } |