| OLD | NEW |
| 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 "chrome/browser/sync/engine/model_changing_syncer_command.h" | 8 #include "sync/engine/model_changing_syncer_command.h" |
| 9 #include "chrome/browser/sync/sessions/sync_session.h" | 9 #include "sync/sessions/sync_session.h" |
| 10 #include "chrome/browser/sync/syncable/model_type.h" | 10 #include "sync/syncable/model_type.h" |
| 11 #include "chrome/browser/sync/test/engine/fake_model_worker.h" | 11 #include "sync/test/engine/fake_model_worker.h" |
| 12 #include "chrome/browser/sync/test/engine/syncer_command_test.h" | 12 #include "sync/test/engine/syncer_command_test.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 14 |
| 15 namespace browser_sync { | 15 namespace browser_sync { |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 class FakeModelChangingSyncerCommand : public ModelChangingSyncerCommand { | 19 class FakeModelChangingSyncerCommand : public ModelChangingSyncerCommand { |
| 20 public: | 20 public: |
| 21 FakeModelChangingSyncerCommand() {} | 21 FakeModelChangingSyncerCommand() {} |
| 22 virtual ~FakeModelChangingSyncerCommand() {} | 22 virtual ~FakeModelChangingSyncerCommand() {} |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 ExpectGroupsToChange(command_, GROUP_UI, GROUP_PASSWORD, GROUP_PASSIVE); | 68 ExpectGroupsToChange(command_, GROUP_UI, GROUP_PASSWORD, GROUP_PASSIVE); |
| 69 EXPECT_TRUE(command_.changed_groups().empty()); | 69 EXPECT_TRUE(command_.changed_groups().empty()); |
| 70 command_.ExecuteImpl(session()); | 70 command_.ExecuteImpl(session()); |
| 71 EXPECT_EQ(command_.GetGroupsToChangeForTest(*session()), | 71 EXPECT_EQ(command_.GetGroupsToChangeForTest(*session()), |
| 72 command_.changed_groups()); | 72 command_.changed_groups()); |
| 73 } | 73 } |
| 74 | 74 |
| 75 } // namespace | 75 } // namespace |
| 76 | 76 |
| 77 } // namespace browser_sync | 77 } // namespace browser_sync |
| OLD | NEW |