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

Side by Side Diff: ios/chrome/browser/passwords/password_controller_unittest.mm

Issue 2292483003: [ios] Fixed kHtmlWithMultiplePasswordForms test case. (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 #import "ios/chrome/browser/passwords/password_controller.h" 5 #import "ios/chrome/browser/passwords/password_controller.h"
6 6
7 #import <Foundation/Foundation.h> 7 #import <Foundation/Foundation.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 form_data.wait_for_username = wait_for_username; 700 form_data.wait_for_username = wait_for_username;
701 } 701 }
702 702
703 // Test HTML page. It contains several password forms. Tests autofill 703 // Test HTML page. It contains several password forms. Tests autofill
704 // them and verify that the right ones are autofilled. 704 // them and verify that the right ones are autofilled.
705 static NSString* kHtmlWithMultiplePasswordForms = 705 static NSString* kHtmlWithMultiplePasswordForms =
706 @"<form>" 706 @"<form>"
707 "<input id='un0' type='text' name='u0'>" 707 "<input id='un0' type='text' name='u0'>"
708 "<input id='pw0' type='password' name='p0'>" 708 "<input id='pw0' type='password' name='p0'>"
709 "</form>" 709 "</form>"
710 "<form action='action?query=yes#reference'>" 710 "<form action='?query=yes#reference'>"
711 "<input id='un1' type='text' name='u1'>" 711 "<input id='un1' type='text' name='u1'>"
712 "<input id='pw1' type='password' name='p1'>" 712 "<input id='pw1' type='password' name='p1'>"
713 "</form>" 713 "</form>"
714 "<form action='http://some_other_action'>" 714 "<form action='http://some_other_action'>"
715 "<input id='un2' type='text' name='u2'>" 715 "<input id='un2' type='text' name='u2'>"
716 "<input id='pw2' type='password' name='p2'>" 716 "<input id='pw2' type='password' name='p2'>"
717 "</form>" 717 "</form>"
718 "<form>" 718 "<form>"
719 "<input id='un3' type='text' name='u3'>" 719 "<input id='un3' type='text' name='u3'>"
720 "<input id='pw3' type='password' name='p3'>" 720 "<input id='pw3' type='password' name='p3'>"
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
1285 LogSavePasswordProgress(testing::Ne( 1285 LogSavePasswordProgress(testing::Ne(
1286 "Message: \"PasswordManager::OnPasswordFormsRendered\"\n"))) 1286 "Message: \"PasswordManager::OnPasswordFormsRendered\"\n")))
1287 .Times(testing::AnyNumber()); 1287 .Times(testing::AnyNumber());
1288 EXPECT_CALL(*weak_client, GetLogManager()) 1288 EXPECT_CALL(*weak_client, GetLogManager())
1289 .WillRepeatedly(Return(&log_manager)); 1289 .WillRepeatedly(Return(&log_manager));
1290 1290
1291 web_state.SetContentIsHTML(false); 1291 web_state.SetContentIsHTML(false);
1292 web_state.SetCurrentURL(GURL("https://example.com")); 1292 web_state.SetCurrentURL(GURL("https://example.com"));
1293 [passwordController webStateDidLoadPage:&web_state]; 1293 [passwordController webStateDidLoadPage:&web_state];
1294 } 1294 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698