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

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

Issue 6012006: Revert 68944 - Revert "Add named testing interface." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 12 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) 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 // Simple dispatcher to above OnXXX methods. 104 // Simple dispatcher to above OnXXX methods.
105 virtual void OnMessageReceived(const IPC::Message& msg); 105 virtual void OnMessageReceived(const IPC::Message& msg);
106 virtual void InvalidateHandle(const IPC::Message& message); 106 virtual void InvalidateHandle(const IPC::Message& message);
107 }; 107 };
108 108
109 // Base your external tab UI tests on this. 109 // Base your external tab UI tests on this.
110 class ExternalTabUITest : public UITest { 110 class ExternalTabUITest : public UITest {
111 public: 111 public:
112 ExternalTabUITest() : UITest(MessageLoop::TYPE_UI) {} 112 ExternalTabUITest() : UITest(MessageLoop::TYPE_UI) {}
113 // Override UITest's CreateAutomationProxy to provide the unit test 113 // Override UITest's CreateProxyLauncher to provide the unit test
114 // with our special implementation of AutomationProxy. 114 // with our special implementation of AutomationProxy.
115 // This function is called from within UITest::LaunchBrowserAndServer. 115 // This function is called from within UITest::SetUp().
116 virtual AutomationProxy* CreateAutomationProxy(int execution_timeout); 116 virtual ProxyLauncher* CreateProxyLauncher();
117 protected: 117 protected:
118 // Filtered Inet will override automation callbacks for network resources. 118 // Filtered Inet will override automation callbacks for network resources.
119 virtual bool ShouldFilterInet() { 119 virtual bool ShouldFilterInet() {
120 return false; 120 return false;
121 } 121 }
122 ExternalTabUITestMockClient* mock_; 122 ExternalTabUITestMockClient* mock_;
123 std::string channel_id_; // Channel id of automation proxy.
123 }; 124 };
124 125
125 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_UITEST_H_ 126 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_UITEST_H_
OLDNEW
« no previous file with comments | « chrome/test/automation/automation_proxy.cc ('k') | chrome/test/automation/automation_proxy_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698