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

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

Issue 12902030: Make Encryptor a component. Used by //chrome and (soon) //components/webdata. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove duplicate include. Created 7 years, 9 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
« no previous file with comments | « components/autofill/browser/autofill_common_test.cc ('k') | components/components.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/guid.h" 8 #include "base/guid.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/synchronization/waitable_event.h" 11 #include "base/synchronization/waitable_event.h"
12 #include "base/utf_string_conversions.h" 12 #include "base/utf_string_conversions.h"
13 #include "chrome/browser/password_manager/encryptor.h"
14 #include "chrome/browser/webdata/web_data_service.h" 13 #include "chrome/browser/webdata/web_data_service.h"
15 #include "chrome/test/base/testing_browser_process.h" 14 #include "chrome/test/base/testing_browser_process.h"
16 #include "chrome/test/base/testing_profile.h" 15 #include "chrome/test/base/testing_profile.h"
17 #include "components/autofill/browser/autofill_common_test.h" 16 #include "components/autofill/browser/autofill_common_test.h"
18 #include "components/autofill/browser/autofill_metrics.h" 17 #include "components/autofill/browser/autofill_metrics.h"
19 #include "components/autofill/browser/autofill_profile.h" 18 #include "components/autofill/browser/autofill_profile.h"
20 #include "components/autofill/browser/form_structure.h" 19 #include "components/autofill/browser/form_structure.h"
21 #include "components/autofill/browser/personal_data_manager.h" 20 #include "components/autofill/browser/personal_data_manager.h"
22 #include "components/autofill/browser/personal_data_manager_observer.h" 21 #include "components/autofill/browser/personal_data_manager_observer.h"
23 #include "components/autofill/common/form_data.h" 22 #include "components/autofill/common/form_data.h"
23 #include "components/webdata/encryptor/encryptor.h"
24 #include "content/public/browser/notification_details.h" 24 #include "content/public/browser/notification_details.h"
25 #include "content/public/browser/notification_registrar.h" 25 #include "content/public/browser/notification_registrar.h"
26 #include "content/public/browser/notification_source.h" 26 #include "content/public/browser/notification_source.h"
27 #include "content/public/browser/notification_types.h" 27 #include "content/public/browser/notification_types.h"
28 #include "content/public/test/mock_notification_observer.h" 28 #include "content/public/test/mock_notification_observer.h"
29 #include "content/public/test/test_browser_thread.h" 29 #include "content/public/test/test_browser_thread.h"
30 #include "testing/gmock/include/gmock/gmock.h" 30 #include "testing/gmock/include/gmock/gmock.h"
31 #include "testing/gtest/include/gtest/gtest.h" 31 #include "testing/gtest/include/gtest/gtest.h"
32 32
33 using content::BrowserThread; 33 using content::BrowserThread;
(...skipping 1937 matching lines...) Expand 10 before | Expand all | Expand 10 after
1971 1971
1972 // Modify expected to include multi-valued fields. 1972 // Modify expected to include multi-valued fields.
1973 std::vector<string16> values; 1973 std::vector<string16> values;
1974 expected.GetRawMultiInfo(PHONE_HOME_WHOLE_NUMBER, &values); 1974 expected.GetRawMultiInfo(PHONE_HOME_WHOLE_NUMBER, &values);
1975 values.push_back(ASCIIToUTF16("(214) 555-1234")); 1975 values.push_back(ASCIIToUTF16("(214) 555-1234"));
1976 expected.SetRawMultiInfo(PHONE_HOME_WHOLE_NUMBER, values); 1976 expected.SetRawMultiInfo(PHONE_HOME_WHOLE_NUMBER, values);
1977 1977
1978 ASSERT_EQ(1U, results2.size()); 1978 ASSERT_EQ(1U, results2.size());
1979 EXPECT_EQ(0, expected.Compare(*results2[0])); 1979 EXPECT_EQ(0, expected.Compare(*results2[0]));
1980 } 1980 }
OLDNEW
« no previous file with comments | « components/autofill/browser/autofill_common_test.cc ('k') | components/components.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698