summaryrefslogtreecommitdiffstats
path: root/chrome_frame/chrome_frame_automation.h
diff options
context:
space:
mode:
authorjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-23 19:16:20 +0000
committerjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-23 19:16:20 +0000
commit50f53164ebbceb30b69578e96e863375f5cb4f9b (patch)
tree853541075c0a2ac5adb3d4f3a389401d92405edf /chrome_frame/chrome_frame_automation.h
parent117fd71c37c932c5ffcbf59eb42d118d3dfb431f (diff)
downloadchromium_src-50f53164ebbceb30b69578e96e863375f5cb4f9b.zip
chromium_src-50f53164ebbceb30b69578e96e863375f5cb4f9b.tar.gz
chromium_src-50f53164ebbceb30b69578e96e863375f5cb4f9b.tar.bz2
Enhance extension UI testing by enabling you to select which extension
APIs to forward (and thus stub out in your test), while others will keep being fulfilled as per usual. This lets you build tests that stub out one piece of behavior while testing that some side effects of another API happen as expected. BUG=none TEST=Run ui_tests.exe Review URL: http://codereview.chromium.org/314015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29919 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/chrome_frame_automation.h')
-rw-r--r--chrome_frame/chrome_frame_automation.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/chrome_frame/chrome_frame_automation.h b/chrome_frame/chrome_frame_automation.h
index e1a34d7..6eca88d 100644
--- a/chrome_frame/chrome_frame_automation.h
+++ b/chrome_frame/chrome_frame_automation.h
@@ -41,7 +41,8 @@ struct DECLSPEC_NOVTABLE ChromeFrameAutomationProxy {
virtual std::string server_version() = 0;
virtual void SendProxyConfig(const std::string&) = 0;
- virtual void SetEnableExtensionAutomation(bool enable) = 0;
+ virtual void SetEnableExtensionAutomation(
+ const std::vector<std::string>& functions_enabled) = 0;
protected:
~ChromeFrameAutomationProxy() {}
};
@@ -72,8 +73,9 @@ class ChromeFrameAutomationProxyImpl : public ChromeFrameAutomationProxy,
AutomationProxy::SendProxyConfig(p);
}
- virtual void SetEnableExtensionAutomation(bool e) {
- AutomationProxy::SetEnableExtensionAutomation(e);
+ virtual void SetEnableExtensionAutomation(
+ const std::vector<std::string>& functions_enabled) {
+ AutomationProxy::SetEnableExtensionAutomation(functions_enabled);
}
protected:
@@ -202,7 +204,8 @@ class ChromeFrameAutomationClient
const std::string& target);
bool SetProxySettings(const std::string& json_encoded_proxy_settings);
- virtual void SetEnableExtensionAutomation(bool enable_automation);
+ virtual void SetEnableExtensionAutomation(
+ const std::vector<std::string>& functions_enabled);
void FindInPage(const std::wstring& search_string,
FindInPageDirection forward,