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

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

Issue 10559104: sync: Process 'control' data separately (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename, cleanup, fix tests Created 8 years, 6 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/conflict_resolver.cc ('k') | sync/engine/resolve_conflicts_command.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/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/compiler_specific.h" 6 #include "base/compiler_specific.h"
7 #include "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "sync/engine/model_changing_syncer_command.h" 8 #include "sync/engine/model_changing_syncer_command.h"
9 #include "sync/internal_api/public/syncable/model_type.h" 9 #include "sync/internal_api/public/syncable/model_type.h"
10 #include "sync/sessions/sync_session.h" 10 #include "sync/sessions/sync_session.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 SyncerCommandTest::SetUp(); 58 SyncerCommandTest::SetUp();
59 } 59 }
60 60
61 FakeModelChangingSyncerCommand command_; 61 FakeModelChangingSyncerCommand command_;
62 62
63 private: 63 private:
64 DISALLOW_COPY_AND_ASSIGN(ModelChangingSyncerCommandTest); 64 DISALLOW_COPY_AND_ASSIGN(ModelChangingSyncerCommandTest);
65 }; 65 };
66 66
67 TEST_F(ModelChangingSyncerCommandTest, Basic) { 67 TEST_F(ModelChangingSyncerCommandTest, Basic) {
68 ExpectGroupsToChange(command_, GROUP_UI, GROUP_PASSWORD, GROUP_PASSIVE); 68 ExpectGroupsToChange(command_, GROUP_UI, GROUP_PASSWORD,
69 GROUP_PASSIVE, GROUP_CONTROL);
69 EXPECT_TRUE(command_.changed_groups().empty()); 70 EXPECT_TRUE(command_.changed_groups().empty());
70 command_.ExecuteImpl(session()); 71 command_.ExecuteImpl(session());
71 EXPECT_EQ(command_.GetGroupsToChangeForTest(*session()), 72 EXPECT_EQ(command_.GetGroupsToChangeForTest(*session()),
72 command_.changed_groups()); 73 command_.changed_groups());
73 } 74 }
74 75
75 } // namespace 76 } // namespace
76 77
77 } // namespace csync 78 } // namespace csync
OLDNEW
« no previous file with comments | « sync/engine/conflict_resolver.cc ('k') | sync/engine/resolve_conflicts_command.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698