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

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

Issue 6122006: Cleanup: Remove unneeded includes of pref_names.h (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. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | 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" 17 #include "chrome/browser/prefs/pref_service.h"
18 #include "chrome/browser/password_manager/encryptor.h" 18 #include "chrome/browser/password_manager/encryptor.h"
19 #include "chrome/common/guid.h" 19 #include "chrome/common/guid.h"
20 #include "chrome/common/notification_details.h" 20 #include "chrome/common/notification_details.h"
21 #include "chrome/common/notification_observer_mock.h" 21 #include "chrome/common/notification_observer_mock.h"
22 #include "chrome/common/notification_registrar.h" 22 #include "chrome/common/notification_registrar.h"
23 #include "chrome/common/notification_source.h" 23 #include "chrome/common/notification_source.h"
24 #include "chrome/common/notification_type.h" 24 #include "chrome/common/notification_type.h"
25 #include "chrome/common/pref_names.h"
26 #include "chrome/test/testing_profile.h" 25 #include "chrome/test/testing_profile.h"
27 #include "webkit/glue/form_data.h" 26 #include "webkit/glue/form_data.h"
28 #include "testing/gmock/include/gmock/gmock.h" 27 #include "testing/gmock/include/gmock/gmock.h"
29 #include "testing/gtest/include/gtest/gtest.h" 28 #include "testing/gtest/include/gtest/gtest.h"
30 29
31 using webkit_glue::FormData; 30 using webkit_glue::FormData;
32 31
33 ACTION(QuitUIMessageLoop) { 32 ACTION(QuitUIMessageLoop) {
34 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 33 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
35 MessageLoop::current()->Quit(); 34 MessageLoop::current()->Quit();
(...skipping 1345 matching lines...) Expand 10 before | Expand all | Expand 10 after
1381 1380
1382 // Expect that the newer information is saved. In this case the year is 1381 // Expect that the newer information is saved. In this case the year is
1383 // added to the existing credit card. 1382 // added to the existing credit card.
1384 CreditCard expected2; 1383 CreditCard expected2;
1385 autofill_test::SetCreditCardInfo(&expected2, 1384 autofill_test::SetCreditCardInfo(&expected2,
1386 "L1", "Biggie Smalls", "4111111111111111", "01", "2011"); 1385 "L1", "Biggie Smalls", "4111111111111111", "01", "2011");
1387 const std::vector<CreditCard*>& results2 = personal_data_->credit_cards(); 1386 const std::vector<CreditCard*>& results2 = personal_data_->credit_cards();
1388 ASSERT_EQ(1U, results2.size()); 1387 ASSERT_EQ(1U, results2.size());
1389 EXPECT_EQ(0, expected2.Compare(*results2[0])); 1388 EXPECT_EQ(0, expected2.Compare(*results2[0]));
1390 } 1389 }
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
This is Rietveld 408576698