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 "chrome/browser/history/history_database.h" | 5 #include "chrome/browser/history/history_database.h" |
6 | 6 |
7 #include "base/file_util.h" | |
8 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "base/files/file_util.h" |
9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
11 #include "chrome/common/chrome_paths.h" | 11 #include "chrome/common/chrome_paths.h" |
12 #include "sql/init_status.h" | 12 #include "sql/init_status.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 | 14 |
15 namespace history { | 15 namespace history { |
16 | 16 |
17 TEST(HistoryDatabaseTest, DropBookmarks) { | 17 TEST(HistoryDatabaseTest, DropBookmarks) { |
18 base::ScopedTempDir temp_dir; | 18 base::ScopedTempDir temp_dir; |
(...skipping 21 matching lines...) Expand all Loading... |
40 int num_urls = 0; | 40 int num_urls = 0; |
41 URLRow url_row; | 41 URLRow url_row; |
42 while (url_enumerator.GetNextURL(&url_row)) { | 42 while (url_enumerator.GetNextURL(&url_row)) { |
43 ++num_urls; | 43 ++num_urls; |
44 } | 44 } |
45 ASSERT_EQ(5, num_urls); | 45 ASSERT_EQ(5, num_urls); |
46 } | 46 } |
47 } | 47 } |
48 | 48 |
49 } // namespace history | 49 } // namespace history |
OLD | NEW |