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

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

Issue 5849001: Move GUID utils to src/chrome/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chrome/common Created 10 years 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/message_loop.h" 6 #include "base/message_loop.h"
7 #include "base/ref_counted.h" 7 #include "base/ref_counted.h"
8 #include "base/scoped_ptr.h" 8 #include "base/scoped_ptr.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/autofill/autofill_common_test.h" 10 #include "chrome/browser/autofill/autofill_common_test.h"
11 #include "chrome/browser/autofill/autofill_profile.h" 11 #include "chrome/browser/autofill/autofill_profile.h"
12 #include "chrome/browser/autofill/form_structure.h" 12 #include "chrome/browser/autofill/form_structure.h"
13 #include "chrome/browser/autofill/personal_data_manager.h" 13 #include "chrome/browser/autofill/personal_data_manager.h"
14 #include "chrome/browser/browser_thread.h" 14 #include "chrome/browser/browser_thread.h"
15 #include "chrome/browser/guid.h"
16 #include "chrome/browser/prefs/pref_service.h" 15 #include "chrome/browser/prefs/pref_service.h"
17 #include "chrome/browser/password_manager/encryptor.h" 16 #include "chrome/browser/password_manager/encryptor.h"
17 #include "chrome/common/guid.h"
18 #include "chrome/common/notification_details.h" 18 #include "chrome/common/notification_details.h"
19 #include "chrome/common/notification_observer_mock.h" 19 #include "chrome/common/notification_observer_mock.h"
20 #include "chrome/common/notification_registrar.h" 20 #include "chrome/common/notification_registrar.h"
21 #include "chrome/common/notification_service.h" 21 #include "chrome/common/notification_service.h"
22 #include "chrome/common/notification_type.h" 22 #include "chrome/common/notification_type.h"
23 #include "chrome/common/pref_names.h" 23 #include "chrome/common/pref_names.h"
24 #include "chrome/test/testing_profile.h" 24 #include "chrome/test/testing_profile.h"
25 #include "webkit/glue/form_data.h" 25 #include "webkit/glue/form_data.h"
26 #include "testing/gmock/include/gmock/gmock.h" 26 #include "testing/gmock/include/gmock/gmock.h"
27 #include "testing/gtest/include/gtest/gtest.h" 27 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 1350 matching lines...) Expand 10 before | Expand all | Expand 10 after
1378 1378
1379 // Expect that the newer information is saved. In this case the year is 1379 // Expect that the newer information is saved. In this case the year is
1380 // added to the existing credit card. 1380 // added to the existing credit card.
1381 CreditCard expected2; 1381 CreditCard expected2;
1382 autofill_test::SetCreditCardInfo(&expected2, 1382 autofill_test::SetCreditCardInfo(&expected2,
1383 "L1", "Biggie Smalls", "4111111111111111", "01", "2011"); 1383 "L1", "Biggie Smalls", "4111111111111111", "01", "2011");
1384 const std::vector<CreditCard*>& results2 = personal_data_->credit_cards(); 1384 const std::vector<CreditCard*>& results2 = personal_data_->credit_cards();
1385 ASSERT_EQ(1U, results2.size()); 1385 ASSERT_EQ(1U, results2.size());
1386 EXPECT_EQ(0, expected2.Compare(*results2[0])); 1386 EXPECT_EQ(0, expected2.Compare(*results2[0]));
1387 } 1387 }
1388
OLDNEW
« no previous file with comments | « chrome/browser/autofill/personal_data_manager_mac.mm ('k') | chrome/browser/dom_ui/options/autofill_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698