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

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

Issue 8770032: [Sync] Implement encryption-aware conflict resolution. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test Created 8 years, 12 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 | « no previous file | chrome/browser/sync/engine/conflict_resolver.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/location.h" 8 #include "base/location.h"
9 #include "base/stringprintf.h" 9 #include "base/stringprintf.h"
10 #include "chrome/browser/sync/engine/apply_updates_command.h" 10 #include "chrome/browser/sync/engine/apply_updates_command.h"
11 #include "chrome/browser/sync/engine/nigori_util.h" 11 #include "chrome/browser/sync/engine/nigori_util.h"
12 #include "chrome/browser/sync/engine/syncer.h" 12 #include "chrome/browser/sync/engine/syncer.h"
13 #include "chrome/browser/sync/engine/syncer_util.h" 13 #include "chrome/browser/sync/engine/syncer_util.h"
14 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" 14 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h"
15 #include "chrome/browser/sync/protocol/password_specifics.pb.h" 15 #include "chrome/browser/sync/protocol/password_specifics.pb.h"
16 #include "chrome/browser/sync/sessions/sync_session.h" 16 #include "chrome/browser/sync/sessions/sync_session.h"
17 #include "chrome/browser/sync/syncable/directory_manager.h" 17 #include "chrome/browser/sync/syncable/directory_manager.h"
18 #include "chrome/browser/sync/syncable/syncable.h" 18 #include "chrome/browser/sync/syncable/syncable.h"
19 #include "chrome/browser/sync/syncable/syncable_id.h" 19 #include "chrome/browser/sync/syncable/syncable_id.h"
20 #include "chrome/browser/sync/test/engine/fake_model_worker.h" 20 #include "chrome/browser/sync/test/engine/fake_model_worker.h"
21 #include "chrome/browser/sync/test/engine/syncer_command_test.h" 21 #include "chrome/browser/sync/test/engine/syncer_command_test.h"
22 #include "chrome/browser/sync/test/engine/test_id_factory.h" 22 #include "chrome/browser/sync/test/engine/test_id_factory.h"
23 #include "chrome/browser/sync/util/cryptographer.h"
23 #include "testing/gtest/include/gtest/gtest.h" 24 #include "testing/gtest/include/gtest/gtest.h"
24 25
25 namespace browser_sync { 26 namespace browser_sync {
26 27
27 using sessions::SyncSession; 28 using sessions::SyncSession;
28 using std::string; 29 using std::string;
29 using syncable::Entry; 30 using syncable::Entry;
30 using syncable::Id; 31 using syncable::Id;
31 using syncable::MutableEntry; 32 using syncable::MutableEntry;
32 using syncable::ReadTransaction; 33 using syncable::ReadTransaction;
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 EXPECT_FALSE(cryptographer->is_ready()); 733 EXPECT_FALSE(cryptographer->is_ready());
733 EXPECT_TRUE(cryptographer->has_pending_keys()); 734 EXPECT_TRUE(cryptographer->has_pending_keys());
734 735
735 Syncer::UnsyncedMetaHandles handles; 736 Syncer::UnsyncedMetaHandles handles;
736 SyncerUtil::GetUnsyncedEntries(&trans, &handles); 737 SyncerUtil::GetUnsyncedEntries(&trans, &handles);
737 EXPECT_EQ(2*batch_s+1, handles.size()); 738 EXPECT_EQ(2*batch_s+1, handles.size());
738 } 739 }
739 } 740 }
740 741
741 } // namespace browser_sync 742 } // namespace browser_sync
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync/engine/conflict_resolver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698