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

Side by Side Diff: chrome/test/automation/automation_proxy_uitest.h

Issue 339009: GMocking Externaltab tests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_UITEST_H_ 5 #ifndef CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_UITEST_H_
6 #define CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_UITEST_H_ 6 #define CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_UITEST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "app/gfx/native_widget_types.h" 10 #include "app/gfx/native_widget_types.h"
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "base/platform_thread.h" 12 #include "base/platform_thread.h"
13 #include "base/time.h" 13 #include "base/time.h"
14 #include "chrome/test/automation/automation_proxy.h" 14 #include "chrome/test/automation/automation_proxy.h"
15 #include "chrome/test/ui/ui_test.h" 15 #include "chrome/test/ui/ui_test.h"
16 #include "googleurl/src/gurl.h" 16 #include "googleurl/src/gurl.h"
17 17
18 class TabProxy; 18 class TabProxy;
19 class ExternalTabUITestMockClient;
20
21 class ExternalTabUITest : public UITest {
22 public:
23 // Override UITest's CreateAutomationProxy to provide the unit test
24 // with our special implementation of AutomationProxy.
25 // This function is called from within UITest::LaunchBrowserAndServer.
26 virtual AutomationProxy* CreateAutomationProxy(int execution_timeout);
27 protected:
28 ExternalTabUITestMockClient* mock_;
29 };
19 30
20 // Base class for automation proxy testing. 31 // Base class for automation proxy testing.
21 class AutomationProxyVisibleTest : public UITest { 32 class AutomationProxyVisibleTest : public UITest {
22 protected: 33 protected:
23 AutomationProxyVisibleTest() { 34 AutomationProxyVisibleTest() {
24 show_window_ = true; 35 show_window_ = true;
25 } 36 }
26 }; 37 };
27 38
28 // Automation proxy UITest that allows tests to override the automation 39 // Automation proxy UITest that allows tests to override the automation
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 QuitAfter quit_after_; 140 QuitAfter quit_after_;
130 const wchar_t* host_window_class_; 141 const wchar_t* host_window_class_;
131 gfx::NativeWindow host_window_; 142 gfx::NativeWindow host_window_;
132 }; 143 };
133 144
134 // A test harness for testing external tabs. 145 // A test harness for testing external tabs.
135 typedef CustomAutomationProxyTest<AutomationProxyForExternalTab> 146 typedef CustomAutomationProxyTest<AutomationProxyForExternalTab>
136 ExternalTabTestType; 147 ExternalTabTestType;
137 148
138 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_UITEST_H_ 149 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_UITEST_H_
OLDNEW
« no previous file with comments | « chrome/test/automation/automation_proxy.h ('k') | chrome/test/automation/automation_proxy_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698