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

Side by Side Diff: chrome/browser/device_orientation/device_orientation_browsertest.cc

Issue 5089001: Cleanup: Include browser.h -> ui/browser.h [Part 3]. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes. Created 10 years, 1 month 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/command_line.h" 5 #include "base/command_line.h"
6 #include "base/file_path.h" 6 #include "base/file_path.h"
7 #include "base/ref_counted.h" 7 #include "base/ref_counted.h"
8 #include "chrome/browser/browser.h"
9 #include "chrome/browser/device_orientation/orientation.h" 8 #include "chrome/browser/device_orientation/orientation.h"
10 #include "chrome/browser/device_orientation/provider.h" 9 #include "chrome/browser/device_orientation/provider.h"
11 #include "chrome/browser/tab_contents/tab_contents.h" 10 #include "chrome/browser/tab_contents/tab_contents.h"
11 #include "chrome/browser/ui/browser.h"
12 #include "chrome/common/chrome_switches.h" 12 #include "chrome/common/chrome_switches.h"
13 #include "chrome/test/in_process_browser_test.h" 13 #include "chrome/test/in_process_browser_test.h"
14 #include "chrome/test/ui_test_utils.h" 14 #include "chrome/test/ui_test_utils.h"
15 15
16 namespace device_orientation { 16 namespace device_orientation {
17 17
18 class MockProvider : public Provider { 18 class MockProvider : public Provider {
19 public: 19 public:
20 explicit MockProvider(const Orientation& orientation) 20 explicit MockProvider(const Orientation& orientation)
21 : orientation_(orientation), 21 : orientation_(orientation),
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 2); 61 2);
62 62
63 // Check that the page got the event it expected and that the provider 63 // Check that the page got the event it expected and that the provider
64 // saw requests for adding and removing an observer. 64 // saw requests for adding and removing an observer.
65 EXPECT_EQ("pass", browser()->GetSelectedTabContents()->GetURL().ref()); 65 EXPECT_EQ("pass", browser()->GetSelectedTabContents()->GetURL().ref());
66 EXPECT_TRUE(provider->added_observer_); 66 EXPECT_TRUE(provider->added_observer_);
67 EXPECT_TRUE(provider->removed_observer_); 67 EXPECT_TRUE(provider->removed_observer_);
68 } 68 }
69 69
70 } // namespace device_orientation 70 } // namespace device_orientation
OLDNEW
« no previous file with comments | « chrome/browser/debugger/inspectable_tab_proxy.cc ('k') | chrome/browser/download/download_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698