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

Side by Side Diff: chrome/browser/autofill/personal_data_manager_unittest.cc

Issue 6625087: Convert autofill messages to use the new IPC macros (again). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <string> 5 #include <string>
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/ref_counted.h" 9 #include "base/ref_counted.h"
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 FormData form; 644 FormData form;
645 webkit_glue::FormField field; 645 webkit_glue::FormField field;
646 autofill_test::CreateTestFormField( 646 autofill_test::CreateTestFormField(
647 "First name:", "first_name", "George", "text", &field); 647 "First name:", "first_name", "George", "text", &field);
648 form.fields.push_back(field); 648 form.fields.push_back(field);
649 autofill_test::CreateTestFormField( 649 autofill_test::CreateTestFormField(
650 "Last name:", "last_name", "Washington", "text", &field); 650 "Last name:", "last_name", "Washington", "text", &field);
651 form.fields.push_back(field); 651 form.fields.push_back(field);
652 autofill_test::CreateTestFormField( 652 autofill_test::CreateTestFormField(
653 "Phone #:", "home_phone_area_code", "650", "text", &field); 653 "Phone #:", "home_phone_area_code", "650", "text", &field);
654 field.set_max_length(3); 654 field.max_length = 3;
655 form.fields.push_back(field); 655 form.fields.push_back(field);
656 autofill_test::CreateTestFormField( 656 autofill_test::CreateTestFormField(
657 "Phone #:", "home_phone_prefix", "555", "text", &field); 657 "Phone #:", "home_phone_prefix", "555", "text", &field);
658 field.set_max_length(3); 658 field.max_length = 3;
659 form.fields.push_back(field); 659 form.fields.push_back(field);
660 autofill_test::CreateTestFormField( 660 autofill_test::CreateTestFormField(
661 "Phone #:", "home_phone_suffix", "0000", "text", &field); 661 "Phone #:", "home_phone_suffix", "0000", "text", &field);
662 field.set_max_length(4); 662 field.max_length = 4;
663 form.fields.push_back(field); 663 form.fields.push_back(field);
664 autofill_test::CreateTestFormField( 664 autofill_test::CreateTestFormField(
665 "Address:", "address1", "21 Laussat St", "text", &field); 665 "Address:", "address1", "21 Laussat St", "text", &field);
666 form.fields.push_back(field); 666 form.fields.push_back(field);
667 autofill_test::CreateTestFormField( 667 autofill_test::CreateTestFormField(
668 "City:", "city", "San Francisco", "text", &field); 668 "City:", "city", "San Francisco", "text", &field);
669 form.fields.push_back(field); 669 form.fields.push_back(field);
670 autofill_test::CreateTestFormField( 670 autofill_test::CreateTestFormField(
671 "State:", "state", "California", "text", &field); 671 "State:", "state", "California", "text", &field);
672 form.fields.push_back(field); 672 form.fields.push_back(field);
(...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after
1615 1615
1616 // Expect that the newer information is saved. In this case the year is 1616 // Expect that the newer information is saved. In this case the year is
1617 // added to the existing credit card. 1617 // added to the existing credit card.
1618 CreditCard expected2; 1618 CreditCard expected2;
1619 autofill_test::SetCreditCardInfo(&expected2, 1619 autofill_test::SetCreditCardInfo(&expected2,
1620 "Biggie Smalls", "4111111111111111", "01", "2011"); 1620 "Biggie Smalls", "4111111111111111", "01", "2011");
1621 const std::vector<CreditCard*>& results2 = personal_data_->credit_cards(); 1621 const std::vector<CreditCard*>& results2 = personal_data_->credit_cards();
1622 ASSERT_EQ(1U, results2.size()); 1622 ASSERT_EQ(1U, results2.size());
1623 EXPECT_EQ(0, expected2.Compare(*results2[0])); 1623 EXPECT_EQ(0, expected2.Compare(*results2[0]));
1624 } 1624 }
OLDNEW
« no previous file with comments | « chrome/browser/autofill/personal_data_manager.cc ('k') | chrome/browser/autofill/phone_field.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698