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

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

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 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 | « chrome/browser/autofill/autofill_ie_toolbar_import_win.cc ('k') | chrome/browser/sync/DEPS » ('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) 2011 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 "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/string16.h" 8 #include "base/string16.h"
9 #include "base/win/registry.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 "sync/util/data_encryption_win.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 using base::win::RegKey; 16 using base::win::RegKey;
17 17
18 // 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.
19 bool ImportCurrentUserProfiles(std::vector<AutofillProfile>* profiles, 19 bool ImportCurrentUserProfiles(std::vector<AutofillProfile>* profiles,
20 std::vector<CreditCard>* credit_cards); 20 std::vector<CreditCard>* credit_cards);
21 21
22 namespace { 22 namespace {
23 23
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 192
193 profiles.clear(); 193 profiles.clear();
194 credit_cards.clear(); 194 credit_cards.clear();
195 EXPECT_TRUE(ImportCurrentUserProfiles(&profiles, &credit_cards)); 195 EXPECT_TRUE(ImportCurrentUserProfiles(&profiles, &credit_cards));
196 // Profiles are not protected. 196 // Profiles are not protected.
197 EXPECT_EQ(2U, profiles.size()); 197 EXPECT_EQ(2U, profiles.size());
198 // Credit cards are. 198 // Credit cards are.
199 EXPECT_EQ(0U, credit_cards.size()); 199 EXPECT_EQ(0U, credit_cards.size());
200 } 200 }
201 201
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_ie_toolbar_import_win.cc ('k') | chrome/browser/sync/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698