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

Unified Diff: chrome/browser/history/history_unittest_base.cc

Issue 813503003: Move files from chrome/browser/history to components/history (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@favicon-owners
Patch Set: Add missing #include of base/macros.h Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/history/history_unittest_base.h ('k') | chrome/browser/history/top_sites_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/history_unittest_base.cc
diff --git a/chrome/browser/history/history_unittest_base.cc b/chrome/browser/history/history_unittest_base.cc
deleted file mode 100644
index 6a2ca9a010e6fff754ab249846abd56840061dd3..0000000000000000000000000000000000000000
--- a/chrome/browser/history/history_unittest_base.cc
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include <vector>
-
-#include "base/files/file_util.h"
-#include "base/format_macros.h"
-#include "base/strings/string_util.h"
-#include "base/strings/stringprintf.h"
-#include "chrome/browser/history/history_unittest_base.h"
-#include "sql/connection.h"
-
-namespace history {
-
-HistoryUnitTestBase::~HistoryUnitTestBase() {
-}
-
-void HistoryUnitTestBase::ExecuteSQLScript(const base::FilePath& sql_path,
- const base::FilePath& db_path) {
- std::string sql;
- ASSERT_TRUE(base::ReadFileToString(sql_path, &sql));
-
- // Replace the 'last_visit_time', 'visit_time', 'time_slot' values in this
- // SQL with the current time.
- int64 now = base::Time::Now().ToInternalValue();
- std::vector<std::string> sql_time;
- sql_time.push_back(base::StringPrintf("%" PRId64, now)); // last_visit_time
- sql_time.push_back(base::StringPrintf("%" PRId64, now)); // visit_time
- sql_time.push_back(base::StringPrintf("%" PRId64, now)); // time_slot
- sql = ReplaceStringPlaceholders(sql, sql_time, NULL);
-
- sql::Connection connection;
- ASSERT_TRUE(connection.Open(db_path));
- ASSERT_TRUE(connection.Execute(sql.c_str()));
-}
-
-HistoryUnitTestBase::HistoryUnitTestBase() {
-}
-
-} // namespace history
« no previous file with comments | « chrome/browser/history/history_unittest_base.h ('k') | chrome/browser/history/top_sites_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698