Index: content/browser/geolocation/gps_location_provider_unittest_linux.cc |
diff --git a/content/browser/geolocation/gps_location_provider_unittest_linux.cc b/content/browser/geolocation/gps_location_provider_unittest_linux.cc |
index 4cba2028221b1c35b7057770ea3894957767e685..a3cd198ad37b14d748011a28fb322603d9a44165 100644 |
--- a/content/browser/geolocation/gps_location_provider_unittest_linux.cc |
+++ b/content/browser/geolocation/gps_location_provider_unittest_linux.cc |
@@ -86,8 +86,7 @@ void CheckValidPosition(const Geoposition& expected, |
MockLibGps* MockLibGps::g_instance_ = NULL; |
MockLibGps::MockLibGps() |
- : LibGps(NULL, gps_open_stub, gps_close_stub, gps_read_stub), |
- get_position_calls_(0), |
+ : get_position_calls_(0), |
get_position_ret_(true), |
gps_open_calls_(0), |
gps_open_ret_(0), |
@@ -96,6 +95,11 @@ MockLibGps::MockLibGps() |
get_position_.error_code = Geoposition::ERROR_CODE_POSITION_UNAVAILABLE; |
EXPECT_FALSE(g_instance_); |
g_instance_ = this; |
+#if defined(USE_LIBGPS) |
+ libgps_loader_.gps_open = gps_open_stub; |
+ libgps_loader_.gps_close = gps_close_stub; |
+ libgps_loader_.gps_read = gps_read_stub; |
+#endif // defined(USE_LIBGPS) |
} |
MockLibGps::~MockLibGps() { |