diff options
author | jnd@google.com <jnd@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-19 01:48:16 +0000 |
---|---|---|
committer | jnd@google.com <jnd@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-19 01:48:16 +0000 |
commit | 97fa6ce336fe635fc0ac06ebefe925d1bc235897 (patch) | |
tree | e8797c5e25c209305a8d864a9f17744486626cce /chrome/test/automation/browser_proxy.h | |
parent | 0844615584c64925c47141d519942655b04b52eb (diff) | |
download | chromium_src-97fa6ce336fe635fc0ac06ebefe925d1bc235897.zip chromium_src-97fa6ce336fe635fc0ac06ebefe925d1bc235897.tar.gz chromium_src-97fa6ce336fe635fc0ac06ebefe925d1bc235897.tar.bz2 |
We need to add UI test for "Encoding" menu to avoid regression.
For this purpose, I have created several methods in automation API.
They can be used for the above UI tests.
1 get the current used encoding name of the page in the specified tab.
2 get value of the encoding auto detection option.
3 enables and disable the encoding auto detection.
4 use the specified encoding to override the encoding of the page in the
specified tab.
BUG=5515
The corresponding UI test is coming soon
Review URL: http://codereview.chromium.org/14162
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7286 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automation/browser_proxy.h')
-rw-r--r-- | chrome/test/automation/browser_proxy.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/test/automation/browser_proxy.h b/chrome/test/automation/browser_proxy.h index 3cc681e..c67dd33 100644 --- a/chrome/test/automation/browser_proxy.h +++ b/chrome/test/automation/browser_proxy.h @@ -149,6 +149,15 @@ class BrowserProxy : public AutomationResourceProxy { // Sets the int value of the specified preference. bool SetIntPreference(const std::wstring& name, int value); + // Sets the string value of the specified preference. + bool SetStringPreference(const std::wstring& name, const std::wstring& value); + + // Gets the boolean value of the specified preference. + bool GetBooleanPreference(const std::wstring& name, bool* value); + + // Sets the boolean value of the specified preference. + bool SetBooleanPreference(const std::wstring& name, bool value); + private: DISALLOW_COPY_AND_ASSIGN(BrowserProxy); }; |