diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-05 00:40:06 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-05 00:40:06 +0000 |
commit | 13869ddf1b7851b4e3a92b7f8f25c606ca5a3536 (patch) | |
tree | 0803bddb2367698c9595c480c287c0f2db833f9f /chrome/test/ui | |
parent | 140aea057fa118579380f685f362f2533862b03f (diff) | |
download | chromium_src-13869ddf1b7851b4e3a92b7f8f25c606ca5a3536.zip chromium_src-13869ddf1b7851b4e3a92b7f8f25c606ca5a3536.tar.gz chromium_src-13869ddf1b7851b4e3a92b7f8f25c606ca5a3536.tar.bz2 |
Linux: enable omni box ui test and automation proxy ui test.
Enable a lot of (already essentially working) automation code along the way.
Review URL: http://codereview.chromium.org/100278
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15258 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/ui')
-rw-r--r-- | chrome/test/ui/omnibox_uitest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/test/ui/omnibox_uitest.cc b/chrome/test/ui/omnibox_uitest.cc index d8c5c5a..4620418 100644 --- a/chrome/test/ui/omnibox_uitest.cc +++ b/chrome/test/ui/omnibox_uitest.cc @@ -58,13 +58,13 @@ class OmniboxTest : public UITest { bool OmniboxTest::IsMatch(const std::wstring& input_text, const std::wstring& suggestion) { // This prefix list comes from the list used in history_url_provider.cc - // withiff the exception of "ftp." and "www.". + // with the exception of "ftp." and "www.". std::wstring prefixes[] = {L"", L"ftp://", L"http://", L"https://", L"ftp.", L"www.", L"ftp://www.", L"ftp://ftp.", L"http://www.", L"https://www."}; std::wstring postfixes[] = {L"", L"/"}; - for (int i = 0; i < sizeof(prefixes) / sizeof(std::wstring); ++i) { - for (int j = 0; j < sizeof(postfixes) / sizeof(std::wstring); ++j) { + for (size_t i = 0; i < arraysize(prefixes); ++i) { + for (size_t j = 0; j < arraysize(postfixes); ++j) { if (prefixes[i] + input_text + postfixes[j] == suggestion) return true; } |