| # 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. |
| |
| if (is_android) { |
| import("//build/config/android/config.gni") |
| import("//build/config/android/rules.gni") |
| } |
| |
| source_set("geolocation") { |
| visibility = [ |
| "//blimp/client/app:session", # TODO(nyquist): Remove this. See crbug/651964. |
| "//blimp/client/core/*", |
| "//blimp/engine:browser_tests", # # TODO(nyquist): Remove this. See crbug/653789. |
| ] |
| |
| sources = [ |
| "geolocation_feature.cc", |
| "geolocation_feature.h", |
| ] |
| |
| deps = [ |
| "//base:base", |
| "//blimp/common", |
| "//cc", |
| "//cc/proto", |
| "//net:net", |
| ] |
| |
| public_deps = [ |
| "//blimp/common/proto", |
| "//blimp/net", |
| "//device/geolocation", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| visibility = [ "//blimp/client/core:unit_tests" ] |
| |
| testonly = true |
| |
| sources = [ |
| "geolocation_feature_unittest.cc", |
| ] |
| |
| deps = [ |
| ":geolocation", |
| "//base", |
| "//base/test:test_support", |
| "//blimp/common", |
| "//blimp/common/proto", |
| "//blimp/net", |
| "//blimp/net:test_support", |
| "//blimp/test:support", |
| "//cc/proto", |
| "//device/geolocation", |
| "//device/geolocation:test_support", |
| "//net", |
| "//net:test_support", |
| "//testing/gmock", |
| "//testing/gtest", |
| ] |
| } |