Chromium Code Reviews

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

Issue 6335001: Cleanup: Remove unneeded chrome/browser/prefs/pref_service.h usage.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "chrome/browser/autofill/autofill_common_test.h" 12 #include "chrome/browser/autofill/autofill_common_test.h"
13 #include "chrome/browser/autofill/autofill_profile.h" 13 #include "chrome/browser/autofill/autofill_profile.h"
14 #include "chrome/browser/autofill/form_structure.h" 14 #include "chrome/browser/autofill/form_structure.h"
15 #include "chrome/browser/autofill/personal_data_manager.h" 15 #include "chrome/browser/autofill/personal_data_manager.h"
16 #include "chrome/browser/browser_thread.h" 16 #include "chrome/browser/browser_thread.h"
17 #include "chrome/browser/prefs/pref_service.h"
18 #include "chrome/browser/password_manager/encryptor.h" 17 #include "chrome/browser/password_manager/encryptor.h"
19 #include "chrome/common/guid.h" 18 #include "chrome/common/guid.h"
20 #include "chrome/common/notification_details.h" 19 #include "chrome/common/notification_details.h"
21 #include "chrome/common/notification_observer_mock.h" 20 #include "chrome/common/notification_observer_mock.h"
22 #include "chrome/common/notification_registrar.h" 21 #include "chrome/common/notification_registrar.h"
23 #include "chrome/common/notification_source.h" 22 #include "chrome/common/notification_source.h"
24 #include "chrome/common/notification_type.h" 23 #include "chrome/common/notification_type.h"
25 #include "chrome/test/testing_profile.h" 24 #include "chrome/test/testing_profile.h"
26 #include "webkit/glue/form_data.h" 25 #include "webkit/glue/form_data.h"
27 #include "testing/gmock/include/gmock/gmock.h" 26 #include "testing/gmock/include/gmock/gmock.h"
(...skipping 1352 matching lines...)
1380 1379
1381 // Expect that the newer information is saved. In this case the year is 1380 // Expect that the newer information is saved. In this case the year is
1382 // added to the existing credit card. 1381 // added to the existing credit card.
1383 CreditCard expected2; 1382 CreditCard expected2;
1384 autofill_test::SetCreditCardInfo(&expected2, 1383 autofill_test::SetCreditCardInfo(&expected2,
1385 "L1", "Biggie Smalls", "4111111111111111", "01", "2011"); 1384 "L1", "Biggie Smalls", "4111111111111111", "01", "2011");
1386 const std::vector<CreditCard*>& results2 = personal_data_->credit_cards(); 1385 const std::vector<CreditCard*>& results2 = personal_data_->credit_cards();
1387 ASSERT_EQ(1U, results2.size()); 1386 ASSERT_EQ(1U, results2.size());
1388 EXPECT_EQ(0, expected2.Compare(*results2[0])); 1387 EXPECT_EQ(0, expected2.Compare(*results2[0]));
1389 } 1388 }
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_dialog_mac.mm ('k') | chrome/browser/background_application_list_model.cc » ('j') | no next file with comments »

Powered by Google App Engine