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

Side by Side Diff: content/browser/geolocation/win7_location_api_unittest_win.cc

Issue 19532003: Use a direct include of the message_loop header in content/, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698