Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Side by Side Diff: device/geolocation/BUILD.gn

Issue 2161223003: Adds GeolocationFeature for Blimp Geolocation project. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@engine_feature_prep
Patch Set: Addresses kmarshall's #82 comments. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/features.gni") 5 import("//build/config/features.gni")
6 6
7 if (is_android) { 7 if (is_android) {
8 import("//build/config/android/rules.gni") # For generate_jni(). 8 import("//build/config/android/rules.gni") # For generate_jni().
9 } 9 }
10 10
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 testonly = true 139 testonly = true
140 140
141 java_files = [ "android/java/org/chromium/device/geolocation/MockLocationPro vider.java" ] 141 java_files = [ "android/java/org/chromium/device/geolocation/MockLocationPro vider.java" ]
142 deps = [ 142 deps = [
143 ":geolocation_java", 143 ":geolocation_java",
144 "//base:base_java", 144 "//base:base_java",
145 ] 145 ]
146 } 146 }
147 } 147 }
148 148
149 source_set("test_support") {
150 testonly = true
151
152 sources = [
153 "fake_access_token_store.cc",
154 "fake_access_token_store.h",
155 "fake_location_provider.cc",
156 "fake_location_provider.h",
157 "mock_location_provider.cc",
158 "mock_location_provider.h",
159 ]
160 public_deps = [
161 ":device_geolocation",
162 ]
163 deps = [
164 "//testing/gmock",
165 ]
166 }
167
149 source_set("unittests") { 168 source_set("unittests") {
150 testonly = true 169 testonly = true
151 170
152 sources = [ 171 sources = [
153 "fake_access_token_store.cc",
154 "fake_access_token_store.h",
155 "geolocation_provider_impl_unittest.cc", 172 "geolocation_provider_impl_unittest.cc",
156 "location_arbitrator_impl_unittest.cc", 173 "location_arbitrator_impl_unittest.cc",
157 "mock_location_provider.cc",
158 "mock_location_provider.h",
159 "network_location_provider_unittest.cc", 174 "network_location_provider_unittest.cc",
160 "wifi_data_provider_chromeos_unittest.cc", 175 "wifi_data_provider_chromeos_unittest.cc",
161 "wifi_data_provider_common_unittest.cc", 176 "wifi_data_provider_common_unittest.cc",
162 "wifi_data_provider_linux_unittest.cc", 177 "wifi_data_provider_linux_unittest.cc",
163 "wifi_data_provider_win_unittest.cc", 178 "wifi_data_provider_win_unittest.cc",
164 ] 179 ]
165 public_deps = [ 180 public_deps = [
166 ":device_geolocation", 181 ":device_geolocation",
167 ] 182 ]
168 deps = [ 183 deps = [
184 ":test_support",
169 "//base", 185 "//base",
170 "//base/third_party/dynamic_annotations", 186 "//base/third_party/dynamic_annotations",
171 "//net:test_support", 187 "//net:test_support",
172 "//testing/gmock", 188 "//testing/gmock",
173 "//testing/gtest", 189 "//testing/gtest",
174 ] 190 ]
175 191
176 if (is_linux) { 192 if (is_linux) {
177 if (use_dbus) { 193 if (use_dbus) {
178 deps += [ "//dbus:test_support" ] 194 deps += [ "//dbus:test_support" ]
179 } else { 195 } else {
180 sources -= [ "wifi_data_provider_linux_unittest.cc" ] 196 sources -= [ "wifi_data_provider_linux_unittest.cc" ]
181 } 197 }
182 } 198 }
183 199
184 if (is_chromeos) { 200 if (is_chromeos) {
185 sources -= [ "wifi_data_provider_linux_unittest.cc" ] 201 sources -= [ "wifi_data_provider_linux_unittest.cc" ]
186 deps += [ "//chromeos" ] 202 deps += [ "//chromeos" ]
187 } 203 }
188 204
189 if (is_android) { 205 if (is_android) {
190 sources -= [ 206 sources -= [
191 "network_location_provider_unittest.cc", 207 "network_location_provider_unittest.cc",
192 "wifi_data_provider_common_unittest.cc", 208 "wifi_data_provider_common_unittest.cc",
193 ] 209 ]
194 deps += [ ":geolocation_java_test_support" ] 210 deps += [ ":geolocation_java_test_support" ]
195 } 211 }
196 } 212 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698