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

Side by Side Diff: chrome/browser/history/android/visit_sql_handler_unittest.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 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 <vector> 5 #include <vector>
6 6
7 #include "chrome/browser/history/android/visit_sql_handler.h"
8
9 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
10 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
11 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
12 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
13 #include "chrome/browser/history/android/urls_sql_handler.h"
14 #include "chrome/browser/history/history_database.h" 11 #include "chrome/browser/history/history_database.h"
15 #include "chrome/common/chrome_constants.h" 12 #include "chrome/common/chrome_constants.h"
13 #include "components/history/core/android/urls_sql_handler.h"
14 #include "components/history/core/android/visit_sql_handler.h"
16 #include "components/history/core/browser/history_constants.h" 15 #include "components/history/core/browser/history_constants.h"
17 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
18 17
19 using base::Time; 18 using base::Time;
20 using base::TimeDelta; 19 using base::TimeDelta;
21 20
22 namespace history { 21 namespace history {
23 22
24 class VisitSQLHandlerTest : public testing::Test { 23 class VisitSQLHandlerTest : public testing::Test {
25 public: 24 public:
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 293
295 TableIDRow id; 294 TableIDRow id;
296 id.url_id = url_row.id(); 295 id.url_id = url_row.id();
297 TableIDRows ids; 296 TableIDRows ids;
298 ids.push_back(id); 297 ids.push_back(id);
299 ASSERT_TRUE(urls_sql_handler_.Delete(ids)); 298 ASSERT_TRUE(urls_sql_handler_.Delete(ids));
300 EXPECT_FALSE(history_db_.GetURLRow(row.url_id(), &url_row)); 299 EXPECT_FALSE(history_db_.GetURLRow(row.url_id(), &url_row));
301 } 300 }
302 301
303 } // namespace history 302 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/history/android/visit_sql_handler.cc ('k') | chrome/browser/history/history_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698