| OLD | NEW |
| 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" |
| 11 #include "chrome/browser/bookmarks/bookmark_model.h" | 11 #include "chrome/browser/bookmarks/bookmark_model.h" |
| 12 #include "chrome/browser/browser_prefs.h" | 12 #include "chrome/browser/browser_prefs.h" |
| 13 #include "chrome/browser/history/history.h" | 13 #include "chrome/browser/history/history.h" |
| 14 #include "chrome/browser/profile.h" | 14 #include "chrome/browser/profile.h" |
| 15 #include "chrome/browser/search_engines/template_url_model.h" |
| 15 #include "chrome/browser/sessions/session_service.h" | 16 #include "chrome/browser/sessions/session_service.h" |
| 16 #include "chrome/browser/template_url_model.h" | |
| 17 #include "chrome/common/pref_service.h" | 17 #include "chrome/common/pref_service.h" |
| 18 | 18 |
| 19 class TestingProfile : public Profile { | 19 class TestingProfile : public Profile { |
| 20 public: | 20 public: |
| 21 TestingProfile(); | 21 TestingProfile(); |
| 22 // Creates a new profile by adding |count| to the end of the path. Use this | 22 // Creates a new profile by adding |count| to the end of the path. Use this |
| 23 // when you need to have more than one TestingProfile running at the same | 23 // when you need to have more than one TestingProfile running at the same |
| 24 // time. | 24 // time. |
| 25 explicit TestingProfile(int count); | 25 explicit TestingProfile(int count); |
| 26 virtual ~TestingProfile(); | 26 virtual ~TestingProfile(); |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 | 201 |
| 202 std::wstring id_; | 202 std::wstring id_; |
| 203 | 203 |
| 204 bool off_the_record_; | 204 bool off_the_record_; |
| 205 | 205 |
| 206 // Did the last session exit cleanly? Default is true. | 206 // Did the last session exit cleanly? Default is true. |
| 207 bool last_session_exited_cleanly_; | 207 bool last_session_exited_cleanly_; |
| 208 }; | 208 }; |
| 209 | 209 |
| 210 #endif // CHROME_TEST_TESTING_PROFILE_H__ | 210 #endif // CHROME_TEST_TESTING_PROFILE_H__ |
| OLD | NEW |