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

Side by Side Diff: chrome/browser/sync/test/engine/test_user_share.h

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 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 // sync_api::UserShare instance for unit tests that require one. 6 // sync_api::UserShare 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 15 matching lines...) Expand all
26 // ... 26 // ...
27 // } 27 // }
28 // 28 //
29 29
30 #ifndef CHROME_BROWSER_SYNC_TEST_ENGINE_TEST_USER_SHARE_H_ 30 #ifndef CHROME_BROWSER_SYNC_TEST_ENGINE_TEST_USER_SHARE_H_
31 #define CHROME_BROWSER_SYNC_TEST_ENGINE_TEST_USER_SHARE_H_ 31 #define CHROME_BROWSER_SYNC_TEST_ENGINE_TEST_USER_SHARE_H_
32 #pragma once 32 #pragma once
33 33
34 #include "base/basictypes.h" 34 #include "base/basictypes.h"
35 #include "chrome/browser/sync/internal_api/user_share.h" 35 #include "chrome/browser/sync/internal_api/user_share.h"
36 #include "chrome/browser/sync/test/engine/test_directory_setter_upper.h" 36 #include "sync/test/engine/test_directory_setter_upper.h"
37 37
38 namespace browser_sync { 38 namespace browser_sync {
39 39
40 class TestUserShare { 40 class TestUserShare {
41 public: 41 public:
42 TestUserShare(); 42 TestUserShare();
43 ~TestUserShare(); 43 ~TestUserShare();
44 44
45 // Sets up the UserShare instance. Clears any existing database 45 // Sets up the UserShare instance. Clears any existing database
46 // backing files that might exist on disk. 46 // backing files that might exist on disk.
(...skipping 11 matching lines...) Expand all
58 private: 58 private:
59 TestDirectorySetterUpper dir_maker_; 59 TestDirectorySetterUpper dir_maker_;
60 scoped_ptr<sync_api::UserShare> user_share_; 60 scoped_ptr<sync_api::UserShare> user_share_;
61 61
62 DISALLOW_COPY_AND_ASSIGN(TestUserShare); 62 DISALLOW_COPY_AND_ASSIGN(TestUserShare);
63 }; 63 };
64 64
65 } // namespace browser_sync 65 } // namespace browser_sync
66 66
67 #endif // CHROME_BROWSER_SYNC_TEST_ENGINE_TEST_USER_SHARE_H_ 67 #endif // CHROME_BROWSER_SYNC_TEST_ENGINE_TEST_USER_SHARE_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/test/engine/test_syncable_utils.cc ('k') | chrome/browser/sync/test/fake_encryptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698