OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <stddef.h> |
| 6 |
5 #include <map> | 7 #include <map> |
6 | 8 |
7 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
8 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
9 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
10 #include "components/history/core/browser/history_types.h" | 12 #include "components/history/core/browser/history_types.h" |
11 #include "components/history/core/browser/top_sites_database.h" | 13 #include "components/history/core/browser/top_sites_database.h" |
12 #include "components/history/core/test/database_test_utils.h" | 14 #include "components/history/core/test/database_test_utils.h" |
13 #include "components/history/core/test/thumbnail-inl.h" | 15 #include "components/history/core/test/thumbnail-inl.h" |
14 #include "sql/connection.h" | 16 #include "sql/connection.h" |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 db.RemoveURL(url2); | 460 db.RemoveURL(url2); |
459 | 461 |
460 db.GetPageThumbnails(&urls, &thumbnails); | 462 db.GetPageThumbnails(&urls, &thumbnails); |
461 ASSERT_EQ(4u, urls.size()); | 463 ASSERT_EQ(4u, urls.size()); |
462 ASSERT_EQ(4u, thumbnails.size()); | 464 ASSERT_EQ(4u, thumbnails.size()); |
463 EXPECT_EQ(mapsUrl, urls[0].url); | 465 EXPECT_EQ(mapsUrl, urls[0].url); |
464 EXPECT_EQ(kUrl0, urls[1].url); | 466 EXPECT_EQ(kUrl0, urls[1].url); |
465 } | 467 } |
466 | 468 |
467 } // namespace history | 469 } // namespace history |
OLD | NEW |