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

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

Issue 10700154: Remove #pragma once from sync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/syncer_command_test.h ('k') | sync/test/engine/test_id_factory.h » ('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 // 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 10 matching lines...) Expand all
21 // 21 //
22 // Then, in your tests, get at the directory like so: 22 // Then, in your tests, get at the directory like so:
23 // 23 //
24 // TEST_F(AwesomenessTest, IsMaximal) { 24 // TEST_F(AwesomenessTest, IsMaximal) {
25 // ... now use metadb_.directory() to get at syncable::Entry objects ... 25 // ... now use metadb_.directory() to get at syncable::Entry objects ...
26 // } 26 // }
27 // 27 //
28 28
29 #ifndef SYNC_TEST_ENGINE_TEST_DIRECTORY_SETTER_UPPER_H_ 29 #ifndef SYNC_TEST_ENGINE_TEST_DIRECTORY_SETTER_UPPER_H_
30 #define SYNC_TEST_ENGINE_TEST_DIRECTORY_SETTER_UPPER_H_ 30 #define SYNC_TEST_ENGINE_TEST_DIRECTORY_SETTER_UPPER_H_
31 #pragma once
32 31
33 #include <string> 32 #include <string>
34 33
35 #include "base/basictypes.h" 34 #include "base/basictypes.h"
36 #include "base/compiler_specific.h" 35 #include "base/compiler_specific.h"
37 #include "base/memory/scoped_ptr.h" 36 #include "base/memory/scoped_ptr.h"
38 #include "base/scoped_temp_dir.h" 37 #include "base/scoped_temp_dir.h"
39 #include "sync/test/fake_encryptor.h" 38 #include "sync/test/fake_encryptor.h"
40 #include "sync/test/null_directory_change_delegate.h" 39 #include "sync/test/null_directory_change_delegate.h"
41 #include "sync/util/test_unrecoverable_error_handler.h" 40 #include "sync/util/test_unrecoverable_error_handler.h"
(...skipping 30 matching lines...) Expand all
72 FakeEncryptor encryptor_; 71 FakeEncryptor encryptor_;
73 scoped_ptr<syncable::Directory> directory_; 72 scoped_ptr<syncable::Directory> directory_;
74 std::string name_; 73 std::string name_;
75 74
76 DISALLOW_COPY_AND_ASSIGN(TestDirectorySetterUpper); 75 DISALLOW_COPY_AND_ASSIGN(TestDirectorySetterUpper);
77 }; 76 };
78 77
79 } // namespace syncer 78 } // namespace syncer
80 79
81 #endif // SYNC_TEST_ENGINE_TEST_DIRECTORY_SETTER_UPPER_H_ 80 #endif // SYNC_TEST_ENGINE_TEST_DIRECTORY_SETTER_UPPER_H_
OLDNEW
« no previous file with comments | « sync/test/engine/syncer_command_test.h ('k') | sync/test/engine/test_id_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698