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

Side by Side Diff: Source/testing/runner/TestInterfaces.h

Issue 23440025: TestRunner library classes should be marked as NonCopyable. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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
« no previous file with comments | « Source/testing/runner/SpellCheckClient.h ('k') | Source/testing/runner/TestPlugin.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 13 matching lines...) Expand all
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef TestInterfaces_h 31 #ifndef TestInterfaces_h
32 #define TestInterfaces_h 32 #define TestInterfaces_h
33 33
34 #include "public/platform/WebNonCopyable.h"
35
34 #include <memory> 36 #include <memory>
35 #include <vector> 37 #include <vector>
36 38
37 #if defined(WIN32) 39 #if defined(WIN32)
38 #include "WebTestThemeEngineWin.h" 40 #include "WebTestThemeEngineWin.h"
39 #elif defined(__APPLE__) 41 #elif defined(__APPLE__)
40 #include "WebTestThemeEngineMac.h" 42 #include "WebTestThemeEngineMac.h"
41 #endif 43 #endif
42 44
43 namespace WebKit { 45 namespace WebKit {
44 class WebFrame; 46 class WebFrame;
45 class WebThemeEngine; 47 class WebThemeEngine;
46 class WebURL; 48 class WebURL;
47 class WebView; 49 class WebView;
48 } 50 }
49 51
50 namespace WebTestRunner { 52 namespace WebTestRunner {
51 53
52 class AccessibilityController; 54 class AccessibilityController;
53 class EventSender; 55 class EventSender;
54 class GamepadController; 56 class GamepadController;
55 class TestRunner; 57 class TestRunner;
56 class TextInputController; 58 class TextInputController;
57 class WebTestDelegate; 59 class WebTestDelegate;
58 class WebTestProxyBase; 60 class WebTestProxyBase;
59 61
60 class TestInterfaces { 62 class TestInterfaces : public WebKit::WebNonCopyable {
61 public: 63 public:
62 TestInterfaces(); 64 TestInterfaces();
63 ~TestInterfaces(); 65 ~TestInterfaces();
64 66
65 void setWebView(WebKit::WebView*, WebTestProxyBase*); 67 void setWebView(WebKit::WebView*, WebTestProxyBase*);
66 void setDelegate(WebTestDelegate*); 68 void setDelegate(WebTestDelegate*);
67 void bindTo(WebKit::WebFrame*); 69 void bindTo(WebKit::WebFrame*);
68 void resetTestHelperControllers(); 70 void resetTestHelperControllers();
69 void resetAll(); 71 void resetAll();
70 void setTestIsRunning(bool); 72 void setTestIsRunning(bool);
(...skipping 25 matching lines...) Expand all
96 std::auto_ptr<WebTestThemeEngineWin> m_themeEngine; 98 std::auto_ptr<WebTestThemeEngineWin> m_themeEngine;
97 #elif defined(__APPLE__) 99 #elif defined(__APPLE__)
98 std::auto_ptr<WebTestThemeEngineMac> m_themeEngine; 100 std::auto_ptr<WebTestThemeEngineMac> m_themeEngine;
99 #endif 101 #endif
100 #endif 102 #endif
101 }; 103 };
102 104
103 } 105 }
104 106
105 #endif // TestInterfaces_h 107 #endif // TestInterfaces_h
OLDNEW
« no previous file with comments | « Source/testing/runner/SpellCheckClient.h ('k') | Source/testing/runner/TestPlugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698