From cca788bcd15283ca9d8c2443f5b309615b7e1a57 Mon Sep 17 00:00:00 2001 From: "tc@google.com" Date: Wed, 3 Jun 2009 18:07:06 +0000 Subject: Port 2 more unit tests. Just small differences between platforms. This allows password_form_manager_unittest.cc and search_provider_unittest.cc to run on linux/mac. Review URL: http://codereview.chromium.org/118137 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17497 0039d316-1c4b-4281-b951-d872f2087c98 --- .../password_manager/password_form_manager_unittest.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'chrome/browser/password_manager') diff --git a/chrome/browser/password_manager/password_form_manager_unittest.cc b/chrome/browser/password_manager/password_form_manager_unittest.cc index 8e90ebf..092cfd9 100644 --- a/chrome/browser/password_manager/password_form_manager_unittest.cc +++ b/chrome/browser/password_manager/password_form_manager_unittest.cc @@ -15,16 +15,16 @@ class PasswordFormManagerTest : public testing::Test { PasswordFormManagerTest() { } virtual void SetUp() { - observed_form_.origin = GURL(L"http://www.google.com/a/LoginAuth"); - observed_form_.action = GURL(L"http://www.google.com/a/Login"); + observed_form_.origin = GURL("http://www.google.com/a/LoginAuth"); + observed_form_.action = GURL("http://www.google.com/a/Login"); observed_form_.username_element = L"Email"; observed_form_.password_element = L"Passwd"; observed_form_.submit_element = L"signIn"; observed_form_.signon_realm = "http://www.google.com"; saved_match_ = observed_form_; - saved_match_.origin = GURL(L"http://www.google.com/a/ServiceLoginAuth"); - saved_match_.action = GURL(L"http://www.google.com/a/ServiceLogin"); + saved_match_.origin = GURL("http://www.google.com/a/ServiceLoginAuth"); + saved_match_.action = GURL("http://www.google.com/a/ServiceLogin"); saved_match_.preferred = true; saved_match_.username_value = L"test@gmail.com"; saved_match_.password_value = L"test1"; @@ -168,8 +168,8 @@ TEST_F(PasswordFormManagerTest, TestIgnoreResult) { saved_match()->ssl_valid = false; // Different paths for action / origin are okay. - saved_match()->action = GURL(L"http://www.google.com/b/Login"); - saved_match()->origin = GURL(L"http://www.google.com/foo"); + saved_match()->action = GURL("http://www.google.com/b/Login"); + saved_match()->origin = GURL("http://www.google.com/foo"); EXPECT_FALSE(IgnoredResult(manager, saved_match())); // Done. -- cgit v1.1