Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1365)

Side by Side Diff: chrome/browser/password_manager/password_form_manager_unittest.cc

Issue 2857015: Clang/mac: Get unit_tests built. (Closed)
Patch Set: rebase Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #include "testing/gtest/include/gtest/gtest.h" 5 #include "testing/gtest/include/gtest/gtest.h"
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/password_manager/password_form_manager.h" 9 #include "chrome/browser/password_manager/password_form_manager.h"
10 #include "chrome/browser/password_manager/password_manager.h" 10 #include "chrome/browser/password_manager/password_manager.h"
11 #include "chrome/browser/profile_manager.h" 11 #include "chrome/browser/profile_manager.h"
12 #include "chrome/test/testing_profile.h" 12 #include "chrome/test/testing_profile.h"
13 #include "webkit/glue/password_form.h" 13 #include "webkit/glue/password_form.h"
14 14
15 using webkit_glue::PasswordForm; 15 using webkit_glue::PasswordForm;
16 16
17 #if 0
18
17 class PasswordFormManagerTest : public testing::Test { 19 class PasswordFormManagerTest : public testing::Test {
18 public: 20 public:
19 PasswordFormManagerTest() { 21 PasswordFormManagerTest() {
20 } 22 }
21 virtual void SetUp() { 23 virtual void SetUp() {
22 observed_form_.origin = GURL("http://www.google.com/a/LoginAuth"); 24 observed_form_.origin = GURL("http://www.google.com/a/LoginAuth");
23 observed_form_.action = GURL("http://www.google.com/a/Login"); 25 observed_form_.action = GURL("http://www.google.com/a/Login");
24 observed_form_.username_element = ASCIIToUTF16("Email"); 26 observed_form_.username_element = ASCIIToUTF16("Email");
25 observed_form_.password_element = ASCIIToUTF16("Passwd"); 27 observed_form_.password_element = ASCIIToUTF16("Passwd");
26 observed_form_.submit_element = ASCIIToUTF16("signIn"); 28 observed_form_.submit_element = ASCIIToUTF16("signIn");
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 credentials.username_element = saved_match()->username_element; 224 credentials.username_element = saved_match()->username_element;
223 credentials.password_element.clear(); 225 credentials.password_element.clear();
224 PasswordFormManager manager3(profile(), NULL, credentials, false); 226 PasswordFormManager manager3(profile(), NULL, credentials, false);
225 SimulateMatchingPhase(&manager3, false); 227 SimulateMatchingPhase(&manager3, false);
226 manager3.ProvisionallySave(credentials); 228 manager3.ProvisionallySave(credentials);
227 229
228 // Invalid form - no password. 230 // Invalid form - no password.
229 EXPECT_FALSE(manager3.HasValidPasswordForm()); 231 EXPECT_FALSE(manager3.HasValidPasswordForm());
230 } 232 }
231 233
234 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698