1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright 2019 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("//testing/test.gni")
assert(is_chromeos, "Non-Chrome-OS builds must not depend on //chromeos")
component("geolocation") {
defines = [ "IS_CHROMEOS_GEOLOCATION_IMPL" ]
deps = [
"//base",
"//chromeos/network",
"//google_apis",
"//net",
"//services/network/public/cpp",
]
sources = [
"geoposition.cc",
"geoposition.h",
"simple_geolocation_provider.cc",
"simple_geolocation_provider.h",
"simple_geolocation_request.cc",
"simple_geolocation_request.h",
"simple_geolocation_request_test_monitor.cc",
"simple_geolocation_request_test_monitor.h",
]
}
source_set("unit_tests") {
testonly = true
deps = [
":geolocation",
"//base",
"//base/test:test_support",
"//chromeos/dbus/shill",
"//chromeos/network:test_support",
"//net",
"//services/network:test_support",
"//services/network/public/cpp",
"//testing/gtest",
]
sources = [ "simple_geolocation_unittest.cc" ]
}
|