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

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

Issue 458723002: TestInterfaces to chromium c++ style, rename methods and remove un-used header. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_INTERFACES_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_INTERFACES_H_
7
8 #include <vector>
9
10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "third_party/WebKit/public/platform/WebNonCopyable.h"
13
14 #if defined(__APPLE__)
jochen (gone - plz use gerrit) 2014/08/11 14:31:59 #if defined(OS_MACOSX)
Abhishek 2014/08/11 17:00:38 Done.
15 #include "content/shell/renderer/test_runner/mock_web_theme_engine_mac.h"
16 #else
17 #include "content/shell/renderer/test_runner/mock_web_theme_engine.h"
18 #endif
19
20 namespace blink {
21 class WebFrame;
22 class WebThemeEngine;
23 class WebURL;
24 class WebView;
25 }
26
27 namespace content {
28
29 class AccessibilityController;
30 class EventSender;
31 class GamepadController;
32 class TestRunner;
33 class TextInputController;
34 class WebTestDelegate;
35 class WebTestProxyBase;
36
37 class TestInterfaces {
38 public:
39 TestInterfaces();
40 ~TestInterfaces();
41
42 void SetWebView(blink::WebView* web_view, WebTestProxyBase* proxy);
43 void SetDelegate(WebTestDelegate* delegate);
44 void BindTo(blink::WebFrame* frame);
45 void ResetTestHelperControllers();
46 void ResetAll();
47 void SetTestIsRunning(bool running);
48 void ConfigureForTestWithURL(const blink::WebURL& test_url,
49 bool generate_pixels);
50
51 void WindowOpened(WebTestProxyBase* proxy);
52 void WindowClosed(WebTestProxyBase* proxy);
53
54 AccessibilityController* GetAccessibilityController();
55 EventSender* GetEventSender();
56 TestRunner* GetTestRunner();
57 WebTestDelegate* Delegate();
jochen (gone - plz use gerrit) 2014/08/11 14:31:59 nit. GetDelegate
Abhishek 2014/08/11 17:00:38 Done.
58 WebTestProxyBase* Proxy();
jochen (gone - plz use gerrit) 2014/08/11 14:31:59 GetProxy() ... also for WindowList and ThemeEngine
Abhishek 2014/08/11 17:00:38 Done.
59 const std::vector<WebTestProxyBase*>& WindowList();
60 blink::WebThemeEngine* ThemeEngine();
61
62 private:
63 scoped_ptr<AccessibilityController> accessibility_controller_;
64 scoped_ptr<EventSender> event_sender_;
65 scoped_ptr<GamepadController> gamepad_controller_;
66 scoped_ptr<TextInputController> text_input_controller_;
67 scoped_ptr<TestRunner> test_runner_;
68 WebTestDelegate* delegate_;
69 WebTestProxyBase* proxy_;
70
71 std::vector<WebTestProxyBase*> window_list_;
72 #if defined(__APPLE__)
jochen (gone - plz use gerrit) 2014/08/11 14:31:59 OS_MACOSX
Abhishek 2014/08/11 17:00:37 Done.
73 scoped_ptr<MockWebThemeEngineMac> theme_engine_;
74 #else
75 scoped_ptr<MockWebThemeEngine> theme_engine_;
76 #endif
77
78 DISALLOW_COPY_AND_ASSIGN(TestInterfaces);
79 };
80
81 } // namespace content
82
83 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_INTERFACES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698