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

Side by Side Diff: chrome/browser/sync/glue/autofill_profile_syncable_service_unittest.cc

Issue 7967024: Profile shouldn't own PersonalDataManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addresses isherman #11 Created 9 years, 3 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/location.h" 5 #include "base/location.h"
6 #include "base/utf_string_conversions.h" 6 #include "base/utf_string_conversions.h"
7 #include "chrome/browser/autofill/autofill_profile.h"
7 #include "chrome/browser/sync/glue/autofill_profile_syncable_service.h" 8 #include "chrome/browser/sync/glue/autofill_profile_syncable_service.h"
8 #include "chrome/browser/sync/internal_api/read_node_mock.h" 9 #include "chrome/browser/sync/internal_api/read_node_mock.h"
9 #include "chrome/browser/sync/internal_api/syncapi_mock.h" 10 #include "chrome/browser/sync/internal_api/syncapi_mock.h"
10 #include "chrome/browser/sync/syncable/syncable.h" 11 #include "chrome/browser/sync/syncable/syncable.h"
11 #include "chrome/browser/sync/syncable/syncable_mock.h" 12 #include "chrome/browser/sync/syncable/syncable_mock.h"
13 #include "content/browser/browser_thread.h"
12 #include "chrome/browser/webdata/autofill_change.h" 14 #include "chrome/browser/webdata/autofill_change.h"
13 #include "testing/gmock/include/gmock/gmock.h" 15 #include "testing/gmock/include/gmock/gmock.h"
14 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
15 17
16 using ::testing::_; 18 using ::testing::_;
17 using ::testing::DoAll; 19 using ::testing::DoAll;
18 using ::testing::Eq; 20 using ::testing::Eq;
19 using ::testing::Return; 21 using ::testing::Return;
20 using ::testing::Property; 22 using ::testing::Property;
21 class AutofillProfile; 23 class AutofillProfile;
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 .WillByDefault(Return(SyncError(FROM_HERE, std::string("an error"), 257 .WillByDefault(Return(SyncError(FROM_HERE, std::string("an error"),
256 syncable::AUTOFILL_PROFILE))); 258 syncable::AUTOFILL_PROFILE)));
257 259
258 MockAutofillProfileSyncableService::AutoSetSyncProcessor temp( 260 MockAutofillProfileSyncableService::AutoSetSyncProcessor temp(
259 &autofill_syncable_service_, &sync_processor_); 261 &autofill_syncable_service_, &sync_processor_);
260 autofill_syncable_service_.ActOnChange(change1); 262 autofill_syncable_service_.ActOnChange(change1);
261 autofill_syncable_service_.ActOnChange(change2); 263 autofill_syncable_service_.ActOnChange(change2);
262 } 264 }
263 265
264 } // namespace browser_sync 266 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/autofill_profile_syncable_service.cc ('k') | chrome/browser/sync/glue/do_optimistic_refresh_task.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698