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

Side by Side Diff: chrome/browser/sync/profile_sync_service_autofill_unittest.cc

Issue 9665007: Profile refactoring: Remove all PasswordStore code from the Profile interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win and Mac 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
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 <set> 5 #include <set>
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 new TestProfileSyncService(components_factory, 405 new TestProfileSyncService(components_factory,
406 &profile_, 406 &profile_,
407 signin, 407 signin,
408 ProfileSyncService::AUTO_START, 408 ProfileSyncService::AUTO_START,
409 false, 409 false,
410 callback)); 410 callback));
411 DataTypeController* data_type_controller = 411 DataTypeController* data_type_controller =
412 factory->CreateDataTypeController(components_factory, 412 factory->CreateDataTypeController(components_factory,
413 &profile_, 413 &profile_,
414 service_.get()); 414 service_.get());
415 SyncBackendHostForProfileSyncTest::
416 SetDefaultExpectationsForWorkerCreation(&profile_);
417 415
418 factory->SetExpectation(components_factory, 416 factory->SetExpectation(components_factory,
419 service_.get(), 417 service_.get(),
420 web_data_service_.get(), 418 web_data_service_.get(),
421 data_type_controller); 419 data_type_controller);
422 420
423 EXPECT_CALL(*components_factory, CreateDataTypeManager(_, _)). 421 EXPECT_CALL(*components_factory, CreateDataTypeManager(_, _)).
424 WillOnce(ReturnNewDataTypeManager()); 422 WillOnce(ReturnNewDataTypeManager());
425 423
426 EXPECT_CALL(*personal_data_manager_, IsDataLoaded()). 424 EXPECT_CALL(*personal_data_manager_, IsDataLoaded()).
(...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after
1227 std::vector<AutofillEntry> sync_entries; 1225 std::vector<AutofillEntry> sync_entries;
1228 std::vector<AutofillProfile> sync_profiles; 1226 std::vector<AutofillProfile> sync_profiles;
1229 ASSERT_TRUE(GetAutofillEntriesFromSyncDB(&sync_entries, &sync_profiles)); 1227 ASSERT_TRUE(GetAutofillEntriesFromSyncDB(&sync_entries, &sync_profiles));
1230 EXPECT_EQ(3U, sync_entries.size()); 1228 EXPECT_EQ(3U, sync_entries.size());
1231 EXPECT_EQ(0U, sync_profiles.size()); 1229 EXPECT_EQ(0U, sync_profiles.size());
1232 for (size_t i = 0; i < sync_entries.size(); i++) { 1230 for (size_t i = 0; i < sync_entries.size(); i++) {
1233 DVLOG(1) << "Entry " << i << ": " << sync_entries[i].key().name() 1231 DVLOG(1) << "Entry " << i << ": " << sync_entries[i].key().name()
1234 << ", " << sync_entries[i].key().value(); 1232 << ", " << sync_entries[i].key().value();
1235 } 1233 }
1236 } 1234 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698