OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include <string> | 5 #include <string> |
6 | 6 |
7 #include "app/system_monitor.h" | 7 #include "app/system_monitor.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
12 #include "chrome/browser/browser_thread.h" | 12 #include "chrome/browser/browser_thread.h" |
13 #include "chrome/browser/prefs/pref_service.h" | |
14 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
15 #include "chrome/browser/profiles/profile_manager.h" | 14 #include "chrome/browser/profiles/profile_manager.h" |
16 #include "chrome/common/chrome_constants.h" | 15 #include "chrome/common/chrome_constants.h" |
17 #include "chrome/common/chrome_paths.h" | 16 #include "chrome/common/chrome_paths.h" |
18 #include "chrome/common/chrome_switches.h" | 17 #include "chrome/common/chrome_switches.h" |
19 #include "chrome/common/notification_service.h" | 18 #include "chrome/common/notification_service.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
21 | 20 |
22 class ProfileManagerTest : public testing::Test { | 21 class ProfileManagerTest : public testing::Test { |
23 protected: | 22 protected: |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 // Force lazy-init of some profile services to simulate use. | 138 // Force lazy-init of some profile services to simulate use. |
140 EXPECT_TRUE(profile1->GetHistoryService(Profile::EXPLICIT_ACCESS)); | 139 EXPECT_TRUE(profile1->GetHistoryService(Profile::EXPLICIT_ACCESS)); |
141 EXPECT_TRUE(profile1->GetBookmarkModel()); | 140 EXPECT_TRUE(profile1->GetBookmarkModel()); |
142 EXPECT_TRUE(profile2->GetBookmarkModel()); | 141 EXPECT_TRUE(profile2->GetBookmarkModel()); |
143 EXPECT_TRUE(profile2->GetHistoryService(Profile::EXPLICIT_ACCESS)); | 142 EXPECT_TRUE(profile2->GetHistoryService(Profile::EXPLICIT_ACCESS)); |
144 profile1.reset(); | 143 profile1.reset(); |
145 profile2.reset(); | 144 profile2.reset(); |
146 // Make sure history cleans up correctly. | 145 // Make sure history cleans up correctly. |
147 message_loop_.RunAllPending(); | 146 message_loop_.RunAllPending(); |
148 } | 147 } |
OLD | NEW |