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

Side by Side Diff: sync/engine/verify_updates_command_unittest.cc

Issue 10698014: [Sync] Rename csync namespace to syncer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 5 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 | « sync/engine/verify_updates_command.cc ('k') | sync/internal_api/base_node.cc » ('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) 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 "base/location.h" 5 #include "base/location.h"
6 #include "sync/engine/verify_updates_command.h" 6 #include "sync/engine/verify_updates_command.h"
7 #include "sync/protocol/bookmark_specifics.pb.h" 7 #include "sync/protocol/bookmark_specifics.pb.h"
8 #include "sync/sessions/session_state.h" 8 #include "sync/sessions/session_state.h"
9 #include "sync/sessions/sync_session.h" 9 #include "sync/sessions/sync_session.h"
10 #include "sync/syncable/mutable_entry.h" 10 #include "sync/syncable/mutable_entry.h"
11 #include "sync/syncable/syncable_id.h" 11 #include "sync/syncable/syncable_id.h"
12 #include "sync/test/engine/fake_model_worker.h" 12 #include "sync/test/engine/fake_model_worker.h"
13 #include "sync/test/engine/syncer_command_test.h" 13 #include "sync/test/engine/syncer_command_test.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 namespace csync { 16 namespace syncer {
17 17
18 using sessions::StatusController; 18 using sessions::StatusController;
19 using std::string; 19 using std::string;
20 using syncable::Id; 20 using syncable::Id;
21 using syncable::MutableEntry; 21 using syncable::MutableEntry;
22 using syncable::UNITTEST; 22 using syncable::UNITTEST;
23 using syncable::WriteTransaction; 23 using syncable::WriteTransaction;
24 24
25 class VerifyUpdatesCommandTest : public SyncerCommandTest { 25 class VerifyUpdatesCommandTest : public SyncerCommandTest {
26 public: 26 public:
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 sessions::ScopedModelSafeGroupRestriction r(status, GROUP_DB); 98 sessions::ScopedModelSafeGroupRestriction r(status, GROUP_DB);
99 ASSERT_TRUE(status->update_progress()); 99 ASSERT_TRUE(status->update_progress());
100 EXPECT_EQ(1, status->update_progress()->VerifiedUpdatesSize()); 100 EXPECT_EQ(1, status->update_progress()->VerifiedUpdatesSize());
101 } 101 }
102 { 102 {
103 sessions::ScopedModelSafeGroupRestriction r(status, GROUP_PASSIVE); 103 sessions::ScopedModelSafeGroupRestriction r(status, GROUP_PASSIVE);
104 EXPECT_FALSE(status->update_progress()); 104 EXPECT_FALSE(status->update_progress());
105 } 105 }
106 } 106 }
107 107
108 } 108 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/engine/verify_updates_command.cc ('k') | sync/internal_api/base_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698