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

Side by Side Diff: sync/internal_api/public/test/test_user_share.h

Issue 1545553003: Switch to standard integer types in sync/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
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 // UserShare instance for unit tests that require one. 6 // 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 12 matching lines...) Expand all
23 // 23 //
24 // TEST_F(AwesomenessTest, IsMaximal) { 24 // TEST_F(AwesomenessTest, IsMaximal) {
25 // ReadTransaction trans(test_user_share_.user_share()); 25 // ReadTransaction trans(test_user_share_.user_share());
26 // ... 26 // ...
27 // } 27 // }
28 // 28 //
29 29
30 #ifndef SYNC_INTERNAL_API_PUBLIC_TEST_TEST_USER_SHARE_H_ 30 #ifndef SYNC_INTERNAL_API_PUBLIC_TEST_TEST_USER_SHARE_H_
31 #define SYNC_INTERNAL_API_PUBLIC_TEST_TEST_USER_SHARE_H_ 31 #define SYNC_INTERNAL_API_PUBLIC_TEST_TEST_USER_SHARE_H_
32 32
33 #include "base/basictypes.h" 33 #include <stddef.h>
34
35 #include "base/macros.h"
34 #include "sync/internal_api/public/base/model_type.h" 36 #include "sync/internal_api/public/base/model_type.h"
35 #include "sync/internal_api/public/user_share.h" 37 #include "sync/internal_api/public/user_share.h"
36 38
37 namespace syncer { 39 namespace syncer {
38 40
39 class SyncEncryptionHandler; 41 class SyncEncryptionHandler;
40 class TestDirectorySetterUpper; 42 class TestDirectorySetterUpper;
41 43
42 namespace syncable { 44 namespace syncable {
43 class TestTransactionObserver; 45 class TestTransactionObserver;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 private: 83 private:
82 scoped_ptr<TestDirectorySetterUpper> dir_maker_; 84 scoped_ptr<TestDirectorySetterUpper> dir_maker_;
83 scoped_ptr<UserShare> user_share_; 85 scoped_ptr<UserShare> user_share_;
84 86
85 DISALLOW_COPY_AND_ASSIGN(TestUserShare); 87 DISALLOW_COPY_AND_ASSIGN(TestUserShare);
86 }; 88 };
87 89
88 } // namespace syncer 90 } // namespace syncer
89 91
90 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_TEST_USER_SHARE_H_ 92 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_TEST_USER_SHARE_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/test/test_internal_components_factory.h ('k') | sync/internal_api/public/util/immutable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698