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

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

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.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/password_manager/encryptor.h" 16 #include "chrome/browser/password_manager/encryptor.h"
17 #include "chrome/common/guid.h" 17 #include "chrome/common/guid.h"
18 #include "chrome/test/testing_browser_process.h" 18 #include "chrome/test/testing_browser_process.h"
19 #include "chrome/test/testing_profile.h" 19 #include "chrome/test/testing_profile.h"
20 #include "content/browser/browser_thread.h" 20 #include "content/browser/browser_thread.h"
21 #include "content/common/content_notification_types.h"
21 #include "content/common/notification_details.h" 22 #include "content/common/notification_details.h"
22 #include "content/common/notification_observer_mock.h" 23 #include "content/common/notification_observer_mock.h"
23 #include "content/common/notification_registrar.h" 24 #include "content/common/notification_registrar.h"
24 #include "content/common/notification_source.h" 25 #include "content/common/notification_source.h"
25 #include "content/common/notification_type.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"
28 #include "webkit/glue/form_data.h" 28 #include "webkit/glue/form_data.h"
29 29
30 using webkit_glue::FormData; 30 using webkit_glue::FormData;
31 31
32 ACTION(QuitUIMessageLoop) { 32 ACTION(QuitUIMessageLoop) {
33 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 33 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
34 MessageLoop::current()->Quit(); 34 MessageLoop::current()->Quit();
35 } 35 }
(...skipping 1707 matching lines...) Expand 10 before | Expand all | Expand 10 after
1743 EXPECT_TRUE(non_empty_types.count(PHONE_FAX_CITY_AND_NUMBER)); 1743 EXPECT_TRUE(non_empty_types.count(PHONE_FAX_CITY_AND_NUMBER));
1744 EXPECT_TRUE(non_empty_types.count(PHONE_FAX_WHOLE_NUMBER)); 1744 EXPECT_TRUE(non_empty_types.count(PHONE_FAX_WHOLE_NUMBER));
1745 EXPECT_TRUE(non_empty_types.count(CREDIT_CARD_NAME)); 1745 EXPECT_TRUE(non_empty_types.count(CREDIT_CARD_NAME));
1746 EXPECT_TRUE(non_empty_types.count(CREDIT_CARD_NUMBER)); 1746 EXPECT_TRUE(non_empty_types.count(CREDIT_CARD_NUMBER));
1747 EXPECT_TRUE(non_empty_types.count(CREDIT_CARD_EXP_MONTH)); 1747 EXPECT_TRUE(non_empty_types.count(CREDIT_CARD_EXP_MONTH));
1748 EXPECT_TRUE(non_empty_types.count(CREDIT_CARD_EXP_2_DIGIT_YEAR)); 1748 EXPECT_TRUE(non_empty_types.count(CREDIT_CARD_EXP_2_DIGIT_YEAR));
1749 EXPECT_TRUE(non_empty_types.count(CREDIT_CARD_EXP_4_DIGIT_YEAR)); 1749 EXPECT_TRUE(non_empty_types.count(CREDIT_CARD_EXP_4_DIGIT_YEAR));
1750 EXPECT_TRUE(non_empty_types.count(CREDIT_CARD_EXP_DATE_2_DIGIT_YEAR)); 1750 EXPECT_TRUE(non_empty_types.count(CREDIT_CARD_EXP_DATE_2_DIGIT_YEAR));
1751 EXPECT_TRUE(non_empty_types.count(CREDIT_CARD_EXP_DATE_4_DIGIT_YEAR)); 1751 EXPECT_TRUE(non_empty_types.count(CREDIT_CARD_EXP_DATE_4_DIGIT_YEAR));
1752 } 1752 }
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_manager.cc ('k') | chrome/browser/automation/automation_browser_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698