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

Side by Side Diff: sync/test/engine/test_directory_setter_upper.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
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 // A handy class that takes care of setting up and destroying a 5 // A handy class that takes care of setting up and destroying a
6 // syncable::Directory instance for unit tests that require one. 6 // syncable::Directory instance for unit tests that require one.
7 // 7 //
8 // The expected usage is to make this a component of your test fixture: 8 // The expected usage is to make this a component of your test fixture:
9 // 9 //
10 // class AwesomenessTest : public testing::Test { 10 // class AwesomenessTest : public testing::Test {
(...skipping 27 matching lines...) Expand all
38 #include "base/scoped_temp_dir.h" 38 #include "base/scoped_temp_dir.h"
39 #include "sync/test/fake_encryptor.h" 39 #include "sync/test/fake_encryptor.h"
40 #include "sync/test/null_directory_change_delegate.h" 40 #include "sync/test/null_directory_change_delegate.h"
41 #include "sync/util/test_unrecoverable_error_handler.h" 41 #include "sync/util/test_unrecoverable_error_handler.h"
42 #include "testing/gmock/include/gmock/gmock.h" 42 #include "testing/gmock/include/gmock/gmock.h"
43 43
44 namespace syncable { 44 namespace syncable {
45 class Directory; 45 class Directory;
46 } 46 }
47 47
48 namespace csync { 48 namespace syncer {
49 49
50 class TestDirectorySetterUpper { 50 class TestDirectorySetterUpper {
51 public: 51 public:
52 TestDirectorySetterUpper(); 52 TestDirectorySetterUpper();
53 virtual ~TestDirectorySetterUpper(); 53 virtual ~TestDirectorySetterUpper();
54 54
55 // Create a Directory instance open it. 55 // Create a Directory instance open it.
56 virtual void SetUp(); 56 virtual void SetUp();
57 57
58 // Undo everything done by SetUp(): close the directory and delete the 58 // Undo everything done by SetUp(): close the directory and delete the
(...skipping 10 matching lines...) Expand all
69 void RunInvariantCheck(); 69 void RunInvariantCheck();
70 70
71 ScopedTempDir temp_dir_; 71 ScopedTempDir temp_dir_;
72 FakeEncryptor encryptor_; 72 FakeEncryptor encryptor_;
73 scoped_ptr<syncable::Directory> directory_; 73 scoped_ptr<syncable::Directory> directory_;
74 std::string name_; 74 std::string name_;
75 75
76 DISALLOW_COPY_AND_ASSIGN(TestDirectorySetterUpper); 76 DISALLOW_COPY_AND_ASSIGN(TestDirectorySetterUpper);
77 }; 77 };
78 78
79 } // namespace csync 79 } // namespace syncer
80 80
81 #endif // SYNC_TEST_ENGINE_TEST_DIRECTORY_SETTER_UPPER_H_ 81 #endif // SYNC_TEST_ENGINE_TEST_DIRECTORY_SETTER_UPPER_H_
OLDNEW
« no previous file with comments | « sync/test/engine/syncer_command_test.cc ('k') | sync/test/engine/test_directory_setter_upper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698