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

Side by Side Diff: sync/test/engine/syncer_command_test.h

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/test/engine/mock_connection_manager.cc ('k') | sync/test/engine/syncer_command_test.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 #ifndef SYNC_TEST_ENGINE_SYNCER_COMMAND_TEST_H_ 5 #ifndef SYNC_TEST_ENGINE_SYNCER_COMMAND_TEST_H_
6 #define SYNC_TEST_ENGINE_SYNCER_COMMAND_TEST_H_ 6 #define SYNC_TEST_ENGINE_SYNCER_COMMAND_TEST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <string> 10 #include <string>
(...skipping 12 matching lines...) Expand all
23 #include "sync/syncable/syncable_mock.h" 23 #include "sync/syncable/syncable_mock.h"
24 #include "sync/test/engine/fake_model_worker.h" 24 #include "sync/test/engine/fake_model_worker.h"
25 #include "sync/test/engine/mock_connection_manager.h" 25 #include "sync/test/engine/mock_connection_manager.h"
26 #include "sync/test/engine/test_directory_setter_upper.h" 26 #include "sync/test/engine/test_directory_setter_upper.h"
27 #include "sync/test/fake_extensions_activity_monitor.h" 27 #include "sync/test/fake_extensions_activity_monitor.h"
28 #include "testing/gmock/include/gmock/gmock.h" 28 #include "testing/gmock/include/gmock/gmock.h"
29 #include "testing/gtest/include/gtest/gtest.h" 29 #include "testing/gtest/include/gtest/gtest.h"
30 30
31 using ::testing::NiceMock; 31 using ::testing::NiceMock;
32 32
33 namespace csync { 33 namespace syncer {
34 34
35 class MockDebugInfoGetter : public csync::sessions::DebugInfoGetter { 35 class MockDebugInfoGetter : public syncer::sessions::DebugInfoGetter {
36 public: 36 public:
37 MockDebugInfoGetter(); 37 MockDebugInfoGetter();
38 virtual ~MockDebugInfoGetter(); 38 virtual ~MockDebugInfoGetter();
39 MOCK_METHOD1(GetAndClearDebugInfo, void(sync_pb::DebugInfo* debug_info)); 39 MOCK_METHOD1(GetAndClearDebugInfo, void(sync_pb::DebugInfo* debug_info));
40 }; 40 };
41 41
42 // A test fixture that simplifies writing unit tests for individual 42 // A test fixture that simplifies writing unit tests for individual
43 // SyncerCommands, providing convenient access to a test directory 43 // SyncerCommands, providing convenient access to a test directory
44 // and a syncer session. 44 // and a syncer session.
45 class SyncerCommandTestBase : public testing::Test, 45 class SyncerCommandTestBase : public testing::Test,
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 MockDirectory* mock_directory() { 226 MockDirectory* mock_directory() {
227 return static_cast<MockDirectory*>(directory()); 227 return static_cast<MockDirectory*>(directory());
228 } 228 }
229 229
230 virtual void SetUp() OVERRIDE; 230 virtual void SetUp() OVERRIDE;
231 231
232 TestUnrecoverableErrorHandler handler_; 232 TestUnrecoverableErrorHandler handler_;
233 MockDirectory mock_directory_; 233 MockDirectory mock_directory_;
234 }; 234 };
235 235
236 } // namespace csync 236 } // namespace syncer
237 237
238 #endif // SYNC_TEST_ENGINE_SYNCER_COMMAND_TEST_H_ 238 #endif // SYNC_TEST_ENGINE_SYNCER_COMMAND_TEST_H_
OLDNEW
« no previous file with comments | « sync/test/engine/mock_connection_manager.cc ('k') | sync/test/engine/syncer_command_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698