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

Side by Side Diff: components/history/core/browser/thumbnail_database_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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/files/file_enumerator.h" 10 #include "base/files/file_enumerator.h"
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 db->BeginTransaction(); 167 db->BeginTransaction();
168 168
169 return db; 169 return db;
170 } 170 }
171 171
172 protected: 172 protected:
173 void SetUp() override { 173 void SetUp() override {
174 // Get a temporary directory for the test DB files. 174 // Get a temporary directory for the test DB files.
175 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); 175 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
176 176
177 file_name_ = temp_dir_.path().AppendASCII("TestFavicons.db"); 177 file_name_ = temp_dir_.GetPath().AppendASCII("TestFavicons.db");
178 } 178 }
179 179
180 base::ScopedTempDir temp_dir_; 180 base::ScopedTempDir temp_dir_;
181 base::FilePath file_name_; 181 base::FilePath file_name_;
182 }; 182 };
183 183
184 TEST_F(ThumbnailDatabaseTest, AddIconMapping) { 184 TEST_F(ThumbnailDatabaseTest, AddIconMapping) {
185 ThumbnailDatabase db(NULL); 185 ThumbnailDatabase db(NULL);
186 ASSERT_EQ(sql::INIT_OK, db.Init(file_name_)); 186 ASSERT_EQ(sql::INIT_OK, db.Init(file_name_));
187 db.BeginTransaction(); 187 db.BeginTransaction();
(...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after
1106 ThumbnailDatabase db(NULL); 1106 ThumbnailDatabase db(NULL);
1107 ASSERT_EQ(sql::INIT_OK, db.Init(db_path)); 1107 ASSERT_EQ(sql::INIT_OK, db.Init(db_path));
1108 1108
1109 // Verify that the resulting schema is correct, whether it 1109 // Verify that the resulting schema is correct, whether it
1110 // involved razing the file or fixing things in place. 1110 // involved razing the file or fixing things in place.
1111 VerifyTablesAndColumns(&db.db_); 1111 VerifyTablesAndColumns(&db.db_);
1112 } 1112 }
1113 } 1113 }
1114 1114
1115 } // namespace history 1115 } // namespace history
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698