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

Side by Side Diff: content/shell/renderer/test_runner/TestInterfaces.h

Issue 264003003: test_runner: Move everything else into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_TESTINTERFACES_H_ 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_TESTINTERFACES_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TESTINTERFACES_H_ 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TESTINTERFACES_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "third_party/WebKit/public/platform/WebNonCopyable.h" 12 #include "third_party/WebKit/public/platform/WebNonCopyable.h"
13 13
14 #if defined(__APPLE__) 14 #if defined(__APPLE__)
15 #include "content/shell/renderer/test_runner/WebTestThemeEngineMac.h" 15 #include "content/shell/renderer/test_runner/WebTestThemeEngineMac.h"
16 #else 16 #else
17 #include "content/shell/renderer/test_runner/WebTestThemeEngineMock.h" 17 #include "content/shell/renderer/test_runner/WebTestThemeEngineMock.h"
18 #endif 18 #endif
19 19
20 namespace blink { 20 namespace blink {
21 class WebFrame; 21 class WebFrame;
22 class WebThemeEngine; 22 class WebThemeEngine;
23 class WebURL; 23 class WebURL;
24 class WebView; 24 class WebView;
25 } 25 }
26 26
27 namespace content { 27 namespace content {
28
28 class AccessibilityController; 29 class AccessibilityController;
29 class EventSender; 30 class EventSender;
30 class GamepadController; 31 class GamepadController;
31 class TestRunner; 32 class TestRunner;
32 class TextInputController; 33 class TextInputController;
34 class WebTestDelegate;
33 class WebTestProxyBase; 35 class WebTestProxyBase;
34 }
35
36 namespace WebTestRunner {
37
38 class WebTestDelegate;
39 36
40 class TestInterfaces { 37 class TestInterfaces {
41 public: 38 public:
42 TestInterfaces(); 39 TestInterfaces();
43 ~TestInterfaces(); 40 ~TestInterfaces();
44 41
45 void setWebView(blink::WebView*, content::WebTestProxyBase*); 42 void setWebView(blink::WebView*, WebTestProxyBase*);
46 void setDelegate(WebTestDelegate*); 43 void setDelegate(WebTestDelegate*);
47 void bindTo(blink::WebFrame*); 44 void bindTo(blink::WebFrame*);
48 void resetTestHelperControllers(); 45 void resetTestHelperControllers();
49 void resetAll(); 46 void resetAll();
50 void setTestIsRunning(bool); 47 void setTestIsRunning(bool);
51 void configureForTestWithURL(const blink::WebURL&, bool generatePixels); 48 void configureForTestWithURL(const blink::WebURL&, bool generatePixels);
52 49
53 void windowOpened(content::WebTestProxyBase*); 50 void windowOpened(WebTestProxyBase*);
54 void windowClosed(content::WebTestProxyBase*); 51 void windowClosed(WebTestProxyBase*);
55 52
56 content::AccessibilityController* accessibilityController(); 53 AccessibilityController* accessibilityController();
57 content::EventSender* eventSender(); 54 EventSender* eventSender();
58 content::TestRunner* testRunner(); 55 TestRunner* testRunner();
59 WebTestDelegate* delegate(); 56 WebTestDelegate* delegate();
60 content::WebTestProxyBase* proxy(); 57 WebTestProxyBase* proxy();
61 const std::vector<content::WebTestProxyBase*>& windowList(); 58 const std::vector<WebTestProxyBase*>& windowList();
62 blink::WebThemeEngine* themeEngine(); 59 blink::WebThemeEngine* themeEngine();
63 60
64 private: 61 private:
65 scoped_ptr<content::AccessibilityController> m_accessibilityController; 62 scoped_ptr<AccessibilityController> m_accessibilityController;
66 scoped_ptr<content::EventSender> m_eventSender; 63 scoped_ptr<EventSender> m_eventSender;
67 scoped_ptr<content::GamepadController> m_gamepadController; 64 scoped_ptr<GamepadController> m_gamepadController;
68 scoped_ptr<content::TextInputController> m_textInputController; 65 scoped_ptr<TextInputController> m_textInputController;
69 scoped_ptr<content::TestRunner> m_testRunner; 66 scoped_ptr<TestRunner> m_testRunner;
70 WebTestDelegate* m_delegate; 67 WebTestDelegate* m_delegate;
71 content::WebTestProxyBase* m_proxy; 68 WebTestProxyBase* m_proxy;
72 69
73 std::vector<content::WebTestProxyBase*> m_windowList; 70 std::vector<WebTestProxyBase*> m_windowList;
74 #if defined(__APPLE__) 71 #if defined(__APPLE__)
75 scoped_ptr<WebTestThemeEngineMac> m_themeEngine; 72 scoped_ptr<WebTestThemeEngineMac> m_themeEngine;
76 #else 73 #else
77 scoped_ptr<WebTestThemeEngineMock> m_themeEngine; 74 scoped_ptr<WebTestThemeEngineMock> m_themeEngine;
78 #endif 75 #endif
79 76
80 DISALLOW_COPY_AND_ASSIGN(TestInterfaces); 77 DISALLOW_COPY_AND_ASSIGN(TestInterfaces);
81 }; 78 };
82 79
83 } 80 } // namespace content
84 81
85 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TESTINTERFACES_H_ 82 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TESTINTERFACES_H_
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/TestCommon.cpp ('k') | content/shell/renderer/test_runner/TestInterfaces.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698