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

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

Issue 689553002: Cleanup: Remove unneeded path_service.h includes in base and chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win Created 6 years, 1 month 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
OLDNEW
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 <set> 5 #include <set>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/files/scoped_temp_dir.h" 9 #include "base/files/scoped_temp_dir.h"
10 #include "base/path_service.h"
11 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
12 #include "base/time/time.h" 11 #include "base/time/time.h"
13 #include "chrome/browser/history/visit_database.h" 12 #include "chrome/browser/history/visit_database.h"
14 #include "components/history/core/browser/url_database.h" 13 #include "components/history/core/browser/url_database.h"
15 #include "sql/connection.h" 14 #include "sql/connection.h"
16 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
17 #include "testing/platform_test.h" 16 #include "testing/platform_test.h"
18 17
19 using base::Time; 18 using base::Time;
20 using base::TimeDelta; 19 using base::TimeDelta;
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 // Now try without de-duping, expect to see all visible visits to url id 1. 410 // Now try without de-duping, expect to see all visible visits to url id 1.
412 options.duplicate_policy = QueryOptions::KEEP_ALL_DUPLICATES; 411 options.duplicate_policy = QueryOptions::KEEP_ALL_DUPLICATES;
413 GetVisibleVisitsForURL(url_id, options, &results); 412 GetVisibleVisitsForURL(url_id, options, &results);
414 ASSERT_EQ(static_cast<size_t>(3), results.size()); 413 ASSERT_EQ(static_cast<size_t>(3), results.size());
415 EXPECT_TRUE(IsVisitInfoEqual(results[0], test_visit_rows[5])); 414 EXPECT_TRUE(IsVisitInfoEqual(results[0], test_visit_rows[5]));
416 EXPECT_TRUE(IsVisitInfoEqual(results[1], test_visit_rows[1])); 415 EXPECT_TRUE(IsVisitInfoEqual(results[1], test_visit_rows[1]));
417 EXPECT_TRUE(IsVisitInfoEqual(results[2], test_visit_rows[0])); 416 EXPECT_TRUE(IsVisitInfoEqual(results[2], test_visit_rows[0]));
418 } 417 }
419 418
420 } // namespace history 419 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/history/top_sites_impl_unittest.cc ('k') | chrome/browser/importer/firefox_profile_lock_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698