OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "base/memory/scoped_ptr.h" | 5 #include "base/memory/scoped_ptr.h" |
| 6 #include "base/message_loop.h" |
6 #include "content/browser/geolocation/arbitrator_dependency_factory.h" | 7 #include "content/browser/geolocation/arbitrator_dependency_factory.h" |
7 #include "content/browser/geolocation/fake_access_token_store.h" | 8 #include "content/browser/geolocation/fake_access_token_store.h" |
8 #include "content/browser/geolocation/geolocation_observer.h" | 9 #include "content/browser/geolocation/geolocation_observer.h" |
9 #include "content/browser/geolocation/location_arbitrator.h" | 10 #include "content/browser/geolocation/location_arbitrator.h" |
10 #include "content/browser/geolocation/location_provider.h" | 11 #include "content/browser/geolocation/location_provider.h" |
11 #include "content/browser/geolocation/mock_location_provider.h" | 12 #include "content/browser/geolocation/mock_location_provider.h" |
12 #include "content/common/geoposition.h" | 13 #include "content/common/geoposition.h" |
13 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
15 | 16 |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 CheckLastPositionInfo(3.5657104, 139.690341, 300); | 281 CheckLastPositionInfo(3.5657104, 139.690341, 300); |
281 | 282 |
282 // 2 minutes later | 283 // 2 minutes later |
283 AdvanceTimeNow(base::TimeDelta::FromMinutes(2)); | 284 AdvanceTimeNow(base::TimeDelta::FromMinutes(2)); |
284 // Arrive in station. Cell moves but GPS is stale. Switch to fresher cell. | 285 // Arrive in station. Cell moves but GPS is stale. Switch to fresher cell. |
285 SetPositionFix(cell(), 3.5658700, 139.069979, 1000); | 286 SetPositionFix(cell(), 3.5658700, 139.069979, 1000); |
286 CheckLastPositionInfo(3.5658700, 139.069979, 1000); | 287 CheckLastPositionInfo(3.5658700, 139.069979, 1000); |
287 } | 288 } |
288 | 289 |
289 } // namespace | 290 } // namespace |
OLD | NEW |