Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(270)

Side by Side Diff: chrome/browser/history/top_sites_database_unittest.cc

Issue 584013002: Componentize history_types.{cc,h} and android_history_types.{cc,h} (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/history/top_sites_database.cc ('k') | chrome/browser/history/top_sites_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <map> 5 #include <map>
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "chrome/browser/history/history_types.h"
12 #include "chrome/browser/history/top_sites_database.h" 11 #include "chrome/browser/history/top_sites_database.h"
13 #include "chrome/common/chrome_paths.h" 12 #include "chrome/common/chrome_paths.h"
14 #include "chrome/tools/profiles/thumbnail-inl.h" 13 #include "chrome/tools/profiles/thumbnail-inl.h"
14 #include "components/history/core/browser/history_types.h"
15 #include "sql/connection.h" 15 #include "sql/connection.h"
16 #include "sql/recovery.h" 16 #include "sql/recovery.h"
17 #include "sql/test/scoped_error_ignorer.h" 17 #include "sql/test/scoped_error_ignorer.h"
18 #include "sql/test/test_helpers.h" 18 #include "sql/test/test_helpers.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 #include "third_party/sqlite/sqlite3.h" 20 #include "third_party/sqlite/sqlite3.h"
21 #include "url/gurl.h" 21 #include "url/gurl.h"
22 22
23 namespace { 23 namespace {
24 24
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 db.RemoveURL(url2); 470 db.RemoveURL(url2);
471 471
472 db.GetPageThumbnails(&urls, &thumbnails); 472 db.GetPageThumbnails(&urls, &thumbnails);
473 ASSERT_EQ(4u, urls.size()); 473 ASSERT_EQ(4u, urls.size());
474 ASSERT_EQ(4u, thumbnails.size()); 474 ASSERT_EQ(4u, thumbnails.size());
475 EXPECT_EQ(mapsUrl, urls[0].url); 475 EXPECT_EQ(mapsUrl, urls[0].url);
476 EXPECT_EQ(kUrl0, urls[1].url); 476 EXPECT_EQ(kUrl0, urls[1].url);
477 } 477 }
478 478
479 } // namespace history 479 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/history/top_sites_database.cc ('k') | chrome/browser/history/top_sites_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698