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

Unified Diff: blimp/engine/feature/geolocation/engine_geolocation_feature_unittest.cc

Issue 2226143002: Gets rid of the LocationArbitrator interface, in preference for LocationProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' into lai 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « blimp/engine/feature/geolocation/blimp_location_provider_unittest.cc ('k') | device/geolocation/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/engine/feature/geolocation/engine_geolocation_feature_unittest.cc
diff --git a/blimp/engine/feature/geolocation/engine_geolocation_feature_unittest.cc b/blimp/engine/feature/geolocation/engine_geolocation_feature_unittest.cc
index d74f7e8162071eb0e106d7458c3b728bb9e56e16..25de9cc961d3d469cea442b5eddf968f61021c4e 100644
--- a/blimp/engine/feature/geolocation/engine_geolocation_feature_unittest.cc
+++ b/blimp/engine/feature/geolocation/engine_geolocation_feature_unittest.cc
@@ -180,7 +180,8 @@ TEST_F(EngineGeolocationFeatureTest, UnexpectedMessageReceived) {
EXPECT_EQ(net::ERR_UNEXPECTED, cb.WaitForResult());
}
-TEST_F(EngineGeolocationFeatureTest, RequestRefresh) {
+TEST_F(EngineGeolocationFeatureTest,
+ OnPermissionGrantedTriggersRefreshRequest) {
EXPECT_CALL(*out_processor_,
MockableProcessMessage(
EqualsUpdatedRequestLevel(
@@ -199,7 +200,7 @@ TEST_F(EngineGeolocationFeatureTest, RequestRefresh) {
.Times(1);
location_provider_->StartProvider(true);
- location_provider_->RequestRefresh();
+ location_provider_->OnPermissionGranted();
}
} // namespace engine
« no previous file with comments | « blimp/engine/feature/geolocation/blimp_location_provider_unittest.cc ('k') | device/geolocation/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698