| 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
|
|
|