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

Side by Side Diff: chrome/test/testing_profile.h

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 1 month 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_TEST_TESTING_PROFILE_H__ 5 #ifndef CHROME_TEST_TESTING_PROFILE_H__
6 #define CHROME_TEST_TESTING_PROFILE_H__ 6 #define CHROME_TEST_TESTING_PROFILE_H__
7 7
8 #include "base/base_paths.h" 8 #include "base/base_paths.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 virtual void MergeResourceInteger(int message_id, int* output_value) { 129 virtual void MergeResourceInteger(int message_id, int* output_value) {
130 } 130 }
131 virtual void MergeResourceBoolean(int message_id, bool* output_value) { 131 virtual void MergeResourceBoolean(int message_id, bool* output_value) {
132 } 132 }
133 virtual BookmarkModel* GetBookmarkModel() { 133 virtual BookmarkModel* GetBookmarkModel() {
134 return bookmark_bar_model_.get(); 134 return bookmark_bar_model_.get();
135 } 135 }
136 virtual bool Profile::IsSameProfile(Profile *p) { 136 virtual bool Profile::IsSameProfile(Profile *p) {
137 return this == p; 137 return this == p;
138 } 138 }
139 virtual Time GetStartTime() const { 139 virtual base::Time GetStartTime() const {
140 return start_time_; 140 return start_time_;
141 } 141 }
142 virtual TabRestoreService* GetTabRestoreService() { 142 virtual TabRestoreService* GetTabRestoreService() {
143 return NULL; 143 return NULL;
144 } 144 }
145 virtual void ResetTabRestoreService() { 145 virtual void ResetTabRestoreService() {
146 } 146 }
147 virtual void InitializeSpellChecker() { 147 virtual void InitializeSpellChecker() {
148 } 148 }
149 virtual SpellChecker* GetSpellChecker() { 149 virtual SpellChecker* GetSpellChecker() {
150 return NULL; 150 return NULL;
151 } 151 }
152 virtual void MarkAsCleanShutdown() { 152 virtual void MarkAsCleanShutdown() {
153 } 153 }
154 154
155 #ifdef CHROME_PERSONALIZATION 155 #ifdef CHROME_PERSONALIZATION
156 virtual ProfilePersonalization* GetProfilePersonalization() { 156 virtual ProfilePersonalization* GetProfilePersonalization() {
157 return NULL; 157 return NULL;
158 } 158 }
159 #endif 159 #endif
160 160
161 protected: 161 protected:
162 // The path of the profile; the various database and other files are relative 162 // The path of the profile; the various database and other files are relative
163 // to this. 163 // to this.
164 std::wstring path_; 164 std::wstring path_;
165 Time start_time_; 165 base::Time start_time_;
166 scoped_ptr<PrefService> prefs_; 166 scoped_ptr<PrefService> prefs_;
167 167
168 private: 168 private:
169 // If the history service has been created, it is destroyed. This is invoked 169 // If the history service has been created, it is destroyed. This is invoked
170 // from the destructor. 170 // from the destructor.
171 void DestroyHistoryService(); 171 void DestroyHistoryService();
172 172
173 // The history service. Only created if CreateHistoryService is invoked. 173 // The history service. Only created if CreateHistoryService is invoked.
174 scoped_refptr<HistoryService> history_service_; 174 scoped_refptr<HistoryService> history_service_;
175 175
176 // The BookmarkModel. Only created if CreateBookmarkModel is invoked. 176 // The BookmarkModel. Only created if CreateBookmarkModel is invoked.
177 scoped_ptr<BookmarkModel> bookmark_bar_model_; 177 scoped_ptr<BookmarkModel> bookmark_bar_model_;
178 178
179 // The TemplateURLFetcher. Only created if CreateTemplateURLModel is invoked. 179 // The TemplateURLFetcher. Only created if CreateTemplateURLModel is invoked.
180 scoped_ptr<TemplateURLModel> template_url_model_; 180 scoped_ptr<TemplateURLModel> template_url_model_;
181 181
182 // Do we have a history service? This defaults to the value of 182 // Do we have a history service? This defaults to the value of
183 // history_service, but can be explicitly set. 183 // history_service, but can be explicitly set.
184 bool has_history_service_; 184 bool has_history_service_;
185 185
186 std::wstring id_; 186 std::wstring id_;
187 187
188 bool off_the_record_; 188 bool off_the_record_;
189 }; 189 };
190 190
191 #endif // CHROME_TEST_TESTING_PROFILE_H__ 191 #endif // CHROME_TEST_TESTING_PROFILE_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698