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

Side by Side Diff: chrome/browser/sync/engine/apply_updates_command_unittest.cc

Issue 6995008: Implement new SyncAPI and convert Preferences to it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and fix compile Created 9 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
« no previous file with comments | « chrome/browser/sync/api/syncable_service_mock.cc ('k') | chrome/browser/sync/engine/syncapi.h » ('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) 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 <string> 5 #include <string>
6 6
7 #include "base/format_macros.h" 7 #include "base/format_macros.h"
8 #include "base/stringprintf.h" 8 #include "base/stringprintf.h"
9 #include "chrome/browser/sync/engine/apply_updates_command.h" 9 #include "chrome/browser/sync/engine/apply_updates_command.h"
10 #include "chrome/browser/sync/engine/syncer.h" 10 #include "chrome/browser/sync/engine/syncer.h"
11 #include "chrome/browser/sync/engine/syncer_util.h" 11 #include "chrome/browser/sync/engine/syncer_util.h"
12 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" 12 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h"
13 #include "chrome/browser/sync/protocol/password_specifics.pb.h"
13 #include "chrome/browser/sync/sessions/sync_session.h" 14 #include "chrome/browser/sync/sessions/sync_session.h"
14 #include "chrome/browser/sync/syncable/directory_manager.h" 15 #include "chrome/browser/sync/syncable/directory_manager.h"
15 #include "chrome/browser/sync/syncable/nigori_util.h" 16 #include "chrome/browser/sync/syncable/nigori_util.h"
16 #include "chrome/browser/sync/syncable/syncable.h" 17 #include "chrome/browser/sync/syncable/syncable.h"
17 #include "chrome/browser/sync/syncable/syncable_id.h" 18 #include "chrome/browser/sync/syncable/syncable_id.h"
18 #include "chrome/test/sync/engine/syncer_command_test.h" 19 #include "chrome/test/sync/engine/syncer_command_test.h"
19 #include "chrome/test/sync/engine/test_id_factory.h" 20 #include "chrome/test/sync/engine/test_id_factory.h"
20 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
21 22
22 namespace browser_sync { 23 namespace browser_sync {
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 encrypted_types.insert(syncable::PASSWORDS); 573 encrypted_types.insert(syncable::PASSWORDS);
573 EXPECT_EQ(encrypted_types, GetEncryptedDataTypes(&trans)); 574 EXPECT_EQ(encrypted_types, GetEncryptedDataTypes(&trans));
574 575
575 Syncer::UnsyncedMetaHandles handles; 576 Syncer::UnsyncedMetaHandles handles;
576 SyncerUtil::GetUnsyncedEntries(&trans, &handles); 577 SyncerUtil::GetUnsyncedEntries(&trans, &handles);
577 EXPECT_EQ(2*batch_s+1, handles.size()); 578 EXPECT_EQ(2*batch_s+1, handles.size());
578 } 579 }
579 } 580 }
580 581
581 } // namespace browser_sync 582 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/api/syncable_service_mock.cc ('k') | chrome/browser/sync/engine/syncapi.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698