| Index: ios/chrome/browser/geolocation/BUILD.gn
|
| diff --git a/ios/chrome/browser/geolocation/BUILD.gn b/ios/chrome/browser/geolocation/BUILD.gn
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1fdb8a8bb2a6e2623b2936ae98c73cc8bdf598c8
|
| --- /dev/null
|
| +++ b/ios/chrome/browser/geolocation/BUILD.gn
|
| @@ -0,0 +1,64 @@
|
| +# 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") {
|
| + 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:browser_no_public_deps",
|
| + "//ios/chrome/browser/updatable_config",
|
| + "//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") {
|
| + 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",
|
| + ]
|
| +}
|
|
|