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

Unified Diff: blimp/client/core/geolocation/geolocation_feature_unittest.cc

Issue 2331513002: Checks to see if the position is valid before OnLocationUpdate call. (Closed)
Patch Set: Tidy up. Created 4 years, 3 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/client/core/geolocation/geolocation_feature.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/client/core/geolocation/geolocation_feature_unittest.cc
diff --git a/blimp/client/core/geolocation/geolocation_feature_unittest.cc b/blimp/client/core/geolocation/geolocation_feature_unittest.cc
index c268933b9e0013856b4c935fc2a1064e6ef8dd63..b84ae18ef4f0ad52c11038f84db2d145c88a532a 100644
--- a/blimp/client/core/geolocation/geolocation_feature_unittest.cc
+++ b/blimp/client/core/geolocation/geolocation_feature_unittest.cc
@@ -207,11 +207,14 @@ TEST_F(GeolocationFeatureTest, MessageSendsAfterAcknowledgement) {
.WillOnce(Invoke(
this, &GeolocationFeatureTest_MessageSendsAfterAcknowledgement_Test::
ReportProcessMessageSuccess));
+
device::Geoposition position;
position.latitude = 1.0;
position.longitude = 1.0;
position.altitude = 1.0;
position.accuracy = 1.0;
+ position.timestamp = base::Time::Now();
+
EXPECT_CALL(*out_processor_,
MockableProcessMessage(EqualGeoposition(1.0, 1.0, 1.0, 1.0), _));
callback_.Run(location_provider_, position_);
« no previous file with comments | « blimp/client/core/geolocation/geolocation_feature.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698