| OLD | NEW |
| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 | 105 |
| 106 // Simple dispatcher to above OnXXX methods. | 106 // Simple dispatcher to above OnXXX methods. |
| 107 virtual void OnMessageReceived(const IPC::Message& msg); | 107 virtual void OnMessageReceived(const IPC::Message& msg); |
| 108 virtual void InvalidateHandle(const IPC::Message& message); | 108 virtual void InvalidateHandle(const IPC::Message& message); |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 // Base your external tab UI tests on this. | 111 // Base your external tab UI tests on this. |
| 112 class ExternalTabUITest : public UITest { | 112 class ExternalTabUITest : public UITest { |
| 113 public: | 113 public: |
| 114 ExternalTabUITest() : UITest(MessageLoop::TYPE_UI) {} | 114 ExternalTabUITest() : UITest(MessageLoop::TYPE_UI) {} |
| 115 // Override UITest's CreateProxyLauncher to provide the unit test | 115 // Override UITest's CreateAutomationProxy to provide the unit test |
| 116 // with our special implementation of AutomationProxy. | 116 // with our special implementation of AutomationProxy. |
| 117 // This function is called from within UITest::SetUp(). | 117 // This function is called from within UITest::LaunchBrowserAndServer. |
| 118 virtual ProxyLauncher* CreateProxyLauncher(); | 118 virtual AutomationProxy* CreateAutomationProxy(int execution_timeout); |
| 119 protected: | 119 protected: |
| 120 // Filtered Inet will override automation callbacks for network resources. | 120 // Filtered Inet will override automation callbacks for network resources. |
| 121 virtual bool ShouldFilterInet() { | 121 virtual bool ShouldFilterInet() { |
| 122 return false; | 122 return false; |
| 123 } | 123 } |
| 124 ExternalTabUITestMockClient* mock_; | 124 ExternalTabUITestMockClient* mock_; |
| 125 std::string channel_id_; // Channel id of automation proxy. | |
| 126 }; | 125 }; |
| 127 | 126 |
| 128 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_UITEST_H_ | 127 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_UITEST_H_ |
| OLD | NEW |