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

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

Issue 3836005: Move pe_image and registry from base to base/win and use the namespace. It re... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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 "chrome/browser/autofill/autofill_ie_toolbar_import_win.h" 5 #include "chrome/browser/autofill/autofill_ie_toolbar_import_win.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/registry.h"
9 #include "base/string16.h" 8 #include "base/string16.h"
9 #include "base/win/registry.h"
10 #include "chrome/browser/autofill/autofill_profile.h" 10 #include "chrome/browser/autofill/autofill_profile.h"
11 #include "chrome/browser/autofill/credit_card.h" 11 #include "chrome/browser/autofill/credit_card.h"
12 #include "chrome/browser/autofill/field_types.h" 12 #include "chrome/browser/autofill/field_types.h"
13 #include "chrome/browser/sync/util/data_encryption.h" 13 #include "chrome/browser/sync/util/data_encryption.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 using base::win::RegKey;
17
16 // Defined in autofill_ie_toolbar_import_win.cc. Not exposed in the header file. 18 // Defined in autofill_ie_toolbar_import_win.cc. Not exposed in the header file.
17 bool ImportCurrentUserProfiles(std::vector<AutoFillProfile>* profiles, 19 bool ImportCurrentUserProfiles(std::vector<AutoFillProfile>* profiles,
18 std::vector<CreditCard>* credit_cards); 20 std::vector<CreditCard>* credit_cards);
19 21
20 namespace { 22 namespace {
21 23
22 const wchar_t kUnitTestRegistrySubKey[] = L"SOFTWARE\\Chromium Unit Tests"; 24 const wchar_t kUnitTestRegistrySubKey[] = L"SOFTWARE\\Chromium Unit Tests";
23 const wchar_t kUnitTestUserOverrideSubKey[] = 25 const wchar_t kUnitTestUserOverrideSubKey[] =
24 L"SOFTWARE\\Chromium Unit Tests\\HKCU Override"; 26 L"SOFTWARE\\Chromium Unit Tests\\HKCU Override";
25 27
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 // Profiles are not protected. 224 // Profiles are not protected.
223 EXPECT_EQ(profiles.size(), 2); 225 EXPECT_EQ(profiles.size(), 2);
224 // Credit cards are. 226 // Credit cards are.
225 EXPECT_EQ(credit_cards.size(), 0); 227 EXPECT_EQ(credit_cards.size(), 0);
226 #else // defined(GOOGLE_CHROME_BUILD) 228 #else // defined(GOOGLE_CHROME_BUILD)
227 // Cannot decrypt CC in non-chrome build. 229 // Cannot decrypt CC in non-chrome build.
228 EXPECT_EQ(credit_cards.size(), 0); 230 EXPECT_EQ(credit_cards.size(), 0);
229 #endif // defined(GOOGLE_CHROME_BUILD) 231 #endif // defined(GOOGLE_CHROME_BUILD)
230 } 232 }
231 233
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_ie_toolbar_import_win.cc ('k') | chrome/browser/background_mode_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698