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

Unified Diff: content/browser/geolocation/win7_location_api_unittest_win.cc

Issue 10316007: Make the Geoposition helper class public (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix forward-declaration of struct as class. Created 8 years, 8 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
Index: content/browser/geolocation/win7_location_api_unittest_win.cc
diff --git a/content/browser/geolocation/win7_location_api_unittest_win.cc b/content/browser/geolocation/win7_location_api_unittest_win.cc
index 88ad51043615807a0ad40652d82589fa33c6259a..1adf934806f45170e7935b6dc4c9114b2ed79250 100644
--- a/content/browser/geolocation/win7_location_api_unittest_win.cc
+++ b/content/browser/geolocation/win7_location_api_unittest_win.cc
@@ -13,7 +13,7 @@
#include "base/message_loop.h"
#include "base/time.h"
#include "content/browser/geolocation/win7_location_api_win.h"
-#include "content/common/geoposition.h"
+#include "content/public/common/geoposition.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -311,18 +311,18 @@ TEST_F(GeolocationApiWin7Tests, PermissionDenied) {
EXPECT_CALL(*locator_, GetReport(_, _))
.Times(AtLeast(1))
.WillRepeatedly(Return(E_ACCESSDENIED));
- Geoposition position;
+ content::Geoposition position;
api_->GetPosition(&position);
- EXPECT_EQ(Geoposition::ERROR_CODE_PERMISSION_DENIED,
+ EXPECT_EQ(content::Geoposition::ERROR_CODE_PERMISSION_DENIED,
position.error_code);
}
TEST_F(GeolocationApiWin7Tests, GetValidPosition) {
EXPECT_CALL(*locator_, GetReport(_, _))
.Times(AtLeast(1));
- Geoposition position;
+ content::Geoposition position;
api_->GetPosition(&position);
- EXPECT_TRUE(position.IsValidFix());
+ EXPECT_TRUE(position.Validate());
}
TEST_F(GeolocationApiWin7Tests, GetInvalidPosition) {
@@ -331,9 +331,9 @@ TEST_F(GeolocationApiWin7Tests, GetInvalidPosition) {
.WillRepeatedly(Return(HRESULT_FROM_WIN32(ERROR_NO_DATA)));
EXPECT_CALL(*locator_, GetReport(_, _))
.Times(AtLeast(1));
- Geoposition position;
+ content::Geoposition position;
api_->GetPosition(&position);
- EXPECT_FALSE(position.IsValidFix());
+ EXPECT_FALSE(position.Validate());
}
} // namespace
« no previous file with comments | « content/browser/geolocation/network_location_request.cc ('k') | content/browser/geolocation/win7_location_api_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698