OLD | NEW |
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 #include <algorithm> | 5 #include <algorithm> |
6 #include <fstream> | 6 #include <fstream> |
7 | 7 |
8 #include "base/auto_reset.h" | 8 #include "base/auto_reset.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/files/scoped_temp_dir.h" | 11 #include "base/files/scoped_temp_dir.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
13 #include "base/path_service.h" | 13 #include "base/path_service.h" |
14 #include "base/string16.h" | 14 #include "base/string16.h" |
15 #include "base/string_util.h" | 15 #include "base/string_util.h" |
16 #include "base/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
17 #include "chrome/browser/autocomplete/autocomplete_provider.h" | 17 #include "chrome/browser/autocomplete/autocomplete_provider.h" |
18 #include "chrome/browser/history/history_backend.h" | 18 #include "chrome/browser/history/history_backend.h" |
19 #include "chrome/browser/history/history_database.h" | 19 #include "chrome/browser/history/history_database.h" |
20 #include "chrome/browser/history/history_notifications.h" | 20 #include "chrome/browser/history/history_notifications.h" |
21 #include "chrome/browser/history/history_service.h" | 21 #include "chrome/browser/history/history_service.h" |
22 #include "chrome/browser/history/history_service_factory.h" | 22 #include "chrome/browser/history/history_service_factory.h" |
23 #include "chrome/browser/history/in_memory_url_index.h" | 23 #include "chrome/browser/history/in_memory_url_index.h" |
24 #include "chrome/browser/history/in_memory_url_index_types.h" | 24 #include "chrome/browser/history/in_memory_url_index_types.h" |
25 #include "chrome/browser/history/url_index_private_data.h" | 25 #include "chrome/browser/history/url_index_private_data.h" |
26 #include "chrome/common/chrome_notification_types.h" | 26 #include "chrome/common/chrome_notification_types.h" |
(...skipping 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1099 full_file_path.GetComponents(&actual_parts); | 1099 full_file_path.GetComponents(&actual_parts); |
1100 ASSERT_EQ(expected_parts.size(), actual_parts.size()); | 1100 ASSERT_EQ(expected_parts.size(), actual_parts.size()); |
1101 size_t count = expected_parts.size(); | 1101 size_t count = expected_parts.size(); |
1102 for (size_t i = 0; i < count; ++i) | 1102 for (size_t i = 0; i < count; ++i) |
1103 EXPECT_EQ(expected_parts[i], actual_parts[i]); | 1103 EXPECT_EQ(expected_parts[i], actual_parts[i]); |
1104 // Must clear the history_dir_ to satisfy the dtor's DCHECK. | 1104 // Must clear the history_dir_ to satisfy the dtor's DCHECK. |
1105 set_history_dir(base::FilePath()); | 1105 set_history_dir(base::FilePath()); |
1106 } | 1106 } |
1107 | 1107 |
1108 } // namespace history | 1108 } // namespace history |
OLD | NEW |