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

Side by Side Diff: chrome/browser/history/android/visit_sql_handler_unittest.cc

Issue 2317003002: //chrome/browser and //components F-L: Change ScopedTempDir::path() to GetPath() (Closed)
Patch Set: Just rebased Created 4 years, 3 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 "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/macros.h" 9 #include "base/macros.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
(...skipping 16 matching lines...) Expand all
27 VisitSQLHandlerTest() 27 VisitSQLHandlerTest()
28 : urls_sql_handler_(&history_db_), 28 : urls_sql_handler_(&history_db_),
29 visit_sql_handler_(&history_db_, &history_db_) {} 29 visit_sql_handler_(&history_db_, &history_db_) {}
30 ~VisitSQLHandlerTest() override {} 30 ~VisitSQLHandlerTest() override {}
31 31
32 protected: 32 protected:
33 void SetUp() override { 33 void SetUp() override {
34 // Get a temporary directory for the test DB files. 34 // Get a temporary directory for the test DB files.
35 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); 35 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
36 base::FilePath history_db_name = 36 base::FilePath history_db_name =
37 temp_dir_.path().AppendASCII(kHistoryFilename); 37 temp_dir_.GetPath().AppendASCII(kHistoryFilename);
38 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name)); 38 ASSERT_EQ(sql::INIT_OK, history_db_.Init(history_db_name));
39 } 39 }
40 40
41 void TearDown() override {} 41 void TearDown() override {}
42 42
43 TestHistoryDatabase history_db_; 43 TestHistoryDatabase history_db_;
44 base::ScopedTempDir temp_dir_; 44 base::ScopedTempDir temp_dir_;
45 UrlsSQLHandler urls_sql_handler_; 45 UrlsSQLHandler urls_sql_handler_;
46 VisitSQLHandler visit_sql_handler_; 46 VisitSQLHandler visit_sql_handler_;
47 47
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 294
295 TableIDRow id; 295 TableIDRow id;
296 id.url_id = url_row.id(); 296 id.url_id = url_row.id();
297 TableIDRows ids; 297 TableIDRows ids;
298 ids.push_back(id); 298 ids.push_back(id);
299 ASSERT_TRUE(urls_sql_handler_.Delete(ids)); 299 ASSERT_TRUE(urls_sql_handler_.Delete(ids));
300 EXPECT_FALSE(history_db_.GetURLRow(row.url_id(), &url_row)); 300 EXPECT_FALSE(history_db_.GetURLRow(row.url_id(), &url_row));
301 } 301 }
302 302
303 } // namespace history 303 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/history/android/urls_sql_handler_unittest.cc ('k') | chrome/browser/history/redirect_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698