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

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

Issue 278053002: Move DataTypeManager into sync_driver component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests Created 6 years, 7 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 350
351 ACTION_P(MakeAutocompleteSyncComponents, wds) { 351 ACTION_P(MakeAutocompleteSyncComponents, wds) {
352 EXPECT_TRUE(BrowserThread::CurrentlyOn(BrowserThread::DB)); 352 EXPECT_TRUE(BrowserThread::CurrentlyOn(BrowserThread::DB));
353 if (!BrowserThread::CurrentlyOn(BrowserThread::DB)) 353 if (!BrowserThread::CurrentlyOn(BrowserThread::DB))
354 return base::WeakPtr<syncer::SyncableService>(); 354 return base::WeakPtr<syncer::SyncableService>();
355 return AutocompleteSyncableService::FromWebDataService(wds)->AsWeakPtr(); 355 return AutocompleteSyncableService::FromWebDataService(wds)->AsWeakPtr();
356 } 356 }
357 357
358 ACTION_P(ReturnNewDataTypeManagerWithDebugListener, debug_listener) { 358 ACTION_P(ReturnNewDataTypeManagerWithDebugListener, debug_listener) {
359 return new browser_sync::DataTypeManagerImpl( 359 return new browser_sync::DataTypeManagerImpl(
360 base::Closure(),
360 debug_listener, 361 debug_listener,
361 arg1, 362 arg1,
362 arg2, 363 arg2,
363 arg3, 364 arg3,
364 arg4, 365 arg4,
365 arg5); 366 arg5);
366 } 367 }
367 368
368 ACTION_P(MakeAutofillProfileSyncComponents, wds) { 369 ACTION_P(MakeAutofillProfileSyncComponents, wds) {
369 EXPECT_TRUE(BrowserThread::CurrentlyOn(BrowserThread::DB)); 370 EXPECT_TRUE(BrowserThread::CurrentlyOn(BrowserThread::DB));
(...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after
1379 std::vector<AutofillEntry> sync_entries; 1380 std::vector<AutofillEntry> sync_entries;
1380 std::vector<AutofillProfile> sync_profiles; 1381 std::vector<AutofillProfile> sync_profiles;
1381 ASSERT_TRUE(GetAutofillEntriesFromSyncDB(&sync_entries, &sync_profiles)); 1382 ASSERT_TRUE(GetAutofillEntriesFromSyncDB(&sync_entries, &sync_profiles));
1382 EXPECT_EQ(3U, sync_entries.size()); 1383 EXPECT_EQ(3U, sync_entries.size());
1383 EXPECT_EQ(0U, sync_profiles.size()); 1384 EXPECT_EQ(0U, sync_profiles.size());
1384 for (size_t i = 0; i < sync_entries.size(); i++) { 1385 for (size_t i = 0; i < sync_entries.size(); i++) {
1385 DVLOG(1) << "Entry " << i << ": " << sync_entries[i].key().name() 1386 DVLOG(1) << "Entry " << i << ": " << sync_entries[i].key().name()
1386 << ", " << sync_entries[i].key().value(); 1387 << ", " << sync_entries[i].key().value();
1387 } 1388 }
1388 } 1389 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_components_factory_impl.cc ('k') | chrome/browser/sync/profile_sync_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698