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 <vector> | 5 #include <vector> |
6 | 6 |
7 #include "chrome/browser/history/history.h" | 7 #include "chrome/browser/history/history.h" |
8 #include "chrome/browser/prefs/pref_service.h" | 8 #include "chrome/browser/prefs/pref_service.h" |
9 #include "chrome/browser/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
11 #include "chrome/common/pref_names.h" | 11 #include "chrome/common/pref_names.h" |
12 #include "chrome/test/in_process_browser_test.h" | 12 #include "chrome/test/in_process_browser_test.h" |
13 #include "chrome/test/ui_test_utils.h" | 13 #include "chrome/test/ui_test_utils.h" |
14 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
15 | 15 |
16 namespace { | 16 namespace { |
17 | 17 |
18 // Note: WaitableEvent is not used for synchronization between the main thread | 18 // Note: WaitableEvent is not used for synchronization between the main thread |
19 // and history backend thread because the history subsystem posts tasks back | 19 // and history backend thread because the history subsystem posts tasks back |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 WaitForHistoryBackendToRun(); | 217 WaitForHistoryBackendToRun(); |
218 | 218 |
219 { | 219 { |
220 std::vector<GURL> urls(GetHistoryContents()); | 220 std::vector<GURL> urls(GetHistoryContents()); |
221 ASSERT_EQ(1U, urls.size()); | 221 ASSERT_EQ(1U, urls.size()); |
222 EXPECT_EQ(GetTestUrl().spec(), urls[0].spec()); | 222 EXPECT_EQ(GetTestUrl().spec(), urls[0].spec()); |
223 } | 223 } |
224 } | 224 } |
225 | 225 |
226 } // namespace | 226 } // namespace |
OLD | NEW |