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

Side by Side Diff: chrome/browser/sync/abstract_profile_sync_service_test.h

Issue 9703038: Profiles: Really fix refcounted services. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Forgot to save a file. >_< 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 #ifndef CHROME_BROWSER_SYNC_ABSTRACT_PROFILE_SYNC_SERVICE_TEST_H_ 5 #ifndef CHROME_BROWSER_SYNC_ABSTRACT_PROFILE_SYNC_SERVICE_TEST_H_
6 #define CHROME_BROWSER_SYNC_ABSTRACT_PROFILE_SYNC_SERVICE_TEST_H_ 6 #define CHROME_BROWSER_SYNC_ABSTRACT_PROFILE_SYNC_SERVICE_TEST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 public: 52 public:
53 AbstractProfileSyncServiceTest(); 53 AbstractProfileSyncServiceTest();
54 virtual ~AbstractProfileSyncServiceTest(); 54 virtual ~AbstractProfileSyncServiceTest();
55 55
56 virtual void SetUp() OVERRIDE; 56 virtual void SetUp() OVERRIDE;
57 57
58 virtual void TearDown() OVERRIDE; 58 virtual void TearDown() OVERRIDE;
59 59
60 bool CreateRoot(syncable::ModelType model_type); 60 bool CreateRoot(syncable::ModelType model_type);
61 61
62 static ProfileKeyedBase* BuildTokenService(Profile* profile); 62 static ProfileKeyedService* BuildTokenService(Profile* profile);
63 protected: 63 protected:
64 MessageLoopForUI ui_loop_; 64 MessageLoopForUI ui_loop_;
65 content::TestBrowserThread ui_thread_; 65 content::TestBrowserThread ui_thread_;
66 content::TestBrowserThread db_thread_; 66 content::TestBrowserThread db_thread_;
67 content::TestBrowserThread file_thread_; 67 content::TestBrowserThread file_thread_;
68 content::TestBrowserThread io_thread_; 68 content::TestBrowserThread io_thread_;
69 TokenService* token_service_; 69 TokenService* token_service_;
70 scoped_ptr<TestProfileSyncService> service_; 70 scoped_ptr<TestProfileSyncService> service_;
71 }; 71 };
72 72
73 class CreateRootHelper { 73 class CreateRootHelper {
74 public: 74 public:
75 CreateRootHelper(AbstractProfileSyncServiceTest* test, 75 CreateRootHelper(AbstractProfileSyncServiceTest* test,
76 syncable::ModelType model_type); 76 syncable::ModelType model_type);
77 virtual ~CreateRootHelper(); 77 virtual ~CreateRootHelper();
78 78
79 const base::Closure& callback() const; 79 const base::Closure& callback() const;
80 bool success(); 80 bool success();
81 81
82 private: 82 private:
83 void CreateRootCallback(); 83 void CreateRootCallback();
84 84
85 base::Closure callback_; 85 base::Closure callback_;
86 AbstractProfileSyncServiceTest* test_; 86 AbstractProfileSyncServiceTest* test_;
87 syncable::ModelType model_type_; 87 syncable::ModelType model_type_;
88 bool success_; 88 bool success_;
89 }; 89 };
90 90
91 #endif // CHROME_BROWSER_SYNC_ABSTRACT_PROFILE_SYNC_SERVICE_TEST_H_ 91 #endif // CHROME_BROWSER_SYNC_ABSTRACT_PROFILE_SYNC_SERVICE_TEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/spellchecker/spellcheck_profile_unittest.cc ('k') | chrome/browser/sync/abstract_profile_sync_service_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698