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

Side by Side Diff: content/browser/device_orientation/provider_unittest.cc

Issue 10823318: Moves device_orientation to content namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Attempts to fix trybots Created 8 years, 4 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
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 <map> 5 #include <map>
6 #include <queue> 6 #include <queue>
7 7
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/synchronization/lock.h" 9 #include "base/synchronization/lock.h"
10 #include "content/browser/device_orientation/data_fetcher.h" 10 #include "content/browser/device_orientation/data_fetcher.h"
11 #include "content/browser/device_orientation/device_data.h" 11 #include "content/browser/device_orientation/device_data.h"
12 #include "content/browser/device_orientation/orientation.h" 12 #include "content/browser/device_orientation/orientation.h"
13 #include "content/browser/device_orientation/provider.h" 13 #include "content/browser/device_orientation/provider.h"
14 #include "content/browser/device_orientation/provider_impl.h" 14 #include "content/browser/device_orientation/provider_impl.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 namespace device_orientation { 17 namespace content {
18 namespace { 18 namespace {
19 19
20 // Class for testing multiple types of device data. 20 // Class for testing multiple types of device data.
21 class TestData : public DeviceData { 21 class TestData : public DeviceData {
22 public: 22 public:
23 TestData() 23 TestData()
24 : value_(0) { 24 : value_(0) {
25 } 25 }
26 26
27 // From DeviceData. 27 // From DeviceData.
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 checker_b->AddExpectation(third_orientation); 578 checker_b->AddExpectation(third_orientation);
579 MessageLoop::current()->Run(); 579 MessageLoop::current()->Run();
580 580
581 provider_->RemoveObserver(checker_a.get()); 581 provider_->RemoveObserver(checker_a.get());
582 provider_->RemoveObserver(checker_b.get()); 582 provider_->RemoveObserver(checker_b.get());
583 MockDeviceDataFactory::SetCurInstance(NULL); 583 MockDeviceDataFactory::SetCurInstance(NULL);
584 } 584 }
585 585
586 } // namespace 586 } // namespace
587 587
588 } // namespace device_orientation 588 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698