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

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

Issue 10500016: Move test_browser_thread.h from content\test to content\public\test. This way we can enforce that i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "chrome/browser/autofill/autofill_common_test.h" 11 #include "chrome/browser/autofill/autofill_common_test.h"
12 #include "chrome/browser/autofill/autofill_profile.h" 12 #include "chrome/browser/autofill/autofill_profile.h"
13 #include "chrome/browser/autofill/form_structure.h" 13 #include "chrome/browser/autofill/form_structure.h"
14 #include "chrome/browser/autofill/personal_data_manager.h" 14 #include "chrome/browser/autofill/personal_data_manager.h"
15 #include "chrome/browser/autofill/personal_data_manager_observer.h" 15 #include "chrome/browser/autofill/personal_data_manager_observer.h"
16 #include "chrome/browser/password_manager/encryptor.h" 16 #include "chrome/browser/password_manager/encryptor.h"
17 #include "chrome/browser/webdata/web_data_service_factory.h" 17 #include "chrome/browser/webdata/web_data_service_factory.h"
18 #include "chrome/common/guid.h" 18 #include "chrome/common/guid.h"
19 #include "chrome/test/base/testing_browser_process.h" 19 #include "chrome/test/base/testing_browser_process.h"
20 #include "chrome/test/base/testing_profile.h" 20 #include "chrome/test/base/testing_profile.h"
21 #include "content/public/browser/notification_details.h" 21 #include "content/public/browser/notification_details.h"
22 #include "content/public/browser/notification_registrar.h" 22 #include "content/public/browser/notification_registrar.h"
23 #include "content/public/browser/notification_source.h" 23 #include "content/public/browser/notification_source.h"
24 #include "content/public/browser/notification_types.h" 24 #include "content/public/browser/notification_types.h"
25 #include "content/public/test/mock_notification_observer.h" 25 #include "content/public/test/mock_notification_observer.h"
26 #include "content/test/test_browser_thread.h" 26 #include "content/public/test/test_browser_thread.h"
27 #include "testing/gmock/include/gmock/gmock.h" 27 #include "testing/gmock/include/gmock/gmock.h"
28 #include "testing/gtest/include/gtest/gtest.h" 28 #include "testing/gtest/include/gtest/gtest.h"
29 #include "webkit/forms/form_data.h" 29 #include "webkit/forms/form_data.h"
30 30
31 using content::BrowserThread; 31 using content::BrowserThread;
32 using webkit::forms::FormData; 32 using webkit::forms::FormData;
33 33
34 ACTION(QuitUIMessageLoop) { 34 ACTION(QuitUIMessageLoop) {
35 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 35 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
36 MessageLoop::current()->Quit(); 36 MessageLoop::current()->Quit();
(...skipping 1914 matching lines...) Expand 10 before | Expand all | Expand 10 after
1951 1951
1952 // Modify expected to include multi-valued fields. 1952 // Modify expected to include multi-valued fields.
1953 std::vector<string16> values; 1953 std::vector<string16> values;
1954 expected.GetMultiInfo(PHONE_HOME_CITY_AND_NUMBER, &values); 1954 expected.GetMultiInfo(PHONE_HOME_CITY_AND_NUMBER, &values);
1955 values.push_back(ASCIIToUTF16("214-555-1234")); 1955 values.push_back(ASCIIToUTF16("214-555-1234"));
1956 expected.SetMultiInfo(PHONE_HOME_CITY_AND_NUMBER, values); 1956 expected.SetMultiInfo(PHONE_HOME_CITY_AND_NUMBER, values);
1957 1957
1958 ASSERT_EQ(1U, results2.size()); 1958 ASSERT_EQ(1U, results2.size());
1959 EXPECT_EQ(0, expected.Compare(*results2[0])); 1959 EXPECT_EQ(0, expected.Compare(*results2[0]));
1960 } 1960 }
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_metrics_unittest.cc ('k') | chrome/browser/autofill/phone_number_i18n_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698