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

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

Issue 23316003: [content shell] move browser process stuff into browser/ subdir (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 | 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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/files/file_path.h" 6 #include "base/files/file_path.h"
7 #include "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/browser/device_orientation/device_data.h" 9 #include "content/browser/device_orientation/device_data.h"
10 #include "content/browser/device_orientation/orientation.h" 10 #include "content/browser/device_orientation/orientation.h"
11 #include "content/browser/device_orientation/provider.h" 11 #include "content/browser/device_orientation/provider.h"
12 #include "content/public/browser/web_contents.h" 12 #include "content/public/browser/web_contents.h"
13 #include "content/public/common/content_switches.h" 13 #include "content/public/common/content_switches.h"
14 #include "content/shell/shell.h" 14 #include "content/shell/browser/shell.h"
15 #include "content/test/content_browser_test.h" 15 #include "content/test/content_browser_test.h"
16 #include "content/test/content_browser_test_utils.h" 16 #include "content/test/content_browser_test_utils.h"
17 17
18 namespace content { 18 namespace content {
19 19
20 class MockProvider : public Provider { 20 class MockProvider : public Provider {
21 public: 21 public:
22 MockProvider(const DeviceData* device_data, DeviceData::Type type) 22 MockProvider(const DeviceData* device_data, DeviceData::Type type)
23 : device_data_(device_data), 23 : device_data_(device_data),
24 device_data_type_(type), 24 device_data_type_(type),
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 NavigateToURLBlockUntilNavigationsComplete(shell(), test_url, 2); 70 NavigateToURLBlockUntilNavigationsComplete(shell(), test_url, 2);
71 71
72 // Check that the page got the event it expected and that the provider 72 // Check that the page got the event it expected and that the provider
73 // saw requests for adding and removing an observer. 73 // saw requests for adding and removing an observer.
74 EXPECT_EQ("pass", shell()->web_contents()->GetLastCommittedURL().ref()); 74 EXPECT_EQ("pass", shell()->web_contents()->GetLastCommittedURL().ref());
75 EXPECT_TRUE(provider->added_observer_); 75 EXPECT_TRUE(provider->added_observer_);
76 EXPECT_TRUE(provider->removed_observer_); 76 EXPECT_TRUE(provider->removed_observer_);
77 } 77 }
78 78
79 } // namespace content 79 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/database_browsertest.cc ('k') | content/browser/dom_storage/dom_storage_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698