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 <Objbase.h> | 5 #include <Objbase.h> |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
15 #include "content/browser/geolocation/win7_location_api_win.h" | 15 #include "content/browser/geolocation/win7_location_api_win.h" |
16 #include "content/public/common/geoposition.h" | 16 #include "content/public/common/geoposition.h" |
17 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 | 19 |
20 using testing::_; | 20 using testing::_; |
21 using testing::AtLeast; | 21 using testing::AtLeast; |
22 using testing::DoDefault; | 22 using testing::DoDefault; |
23 using testing::Invoke; | 23 using testing::Invoke; |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 .Times(AtLeast(1)) | 330 .Times(AtLeast(1)) |
331 .WillRepeatedly(Return(HRESULT_FROM_WIN32(ERROR_NO_DATA))); | 331 .WillRepeatedly(Return(HRESULT_FROM_WIN32(ERROR_NO_DATA))); |
332 EXPECT_CALL(*locator_, GetReport(_, _)) | 332 EXPECT_CALL(*locator_, GetReport(_, _)) |
333 .Times(AtLeast(1)); | 333 .Times(AtLeast(1)); |
334 Geoposition position; | 334 Geoposition position; |
335 api_->GetPosition(&position); | 335 api_->GetPosition(&position); |
336 EXPECT_FALSE(position.Validate()); | 336 EXPECT_FALSE(position.Validate()); |
337 } | 337 } |
338 | 338 |
339 } // namespace content | 339 } // namespace content |
OLD | NEW |