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

Side by Side Diff: sql/test/test_helpers.cc

Issue 529273002: Change base/file_utils.h includes to base/files/file_utils.h in gin, google_apis, printing, sql, ui… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 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
« no previous file with comments | « sql/test/paths.cc ('k') | sql/transaction_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "sql/test/test_helpers.h" 5 #include "sql/test/test_helpers.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/files/scoped_file.h" 10 #include "base/files/scoped_file.h"
11 #include "sql/connection.h" 11 #include "sql/connection.h"
12 #include "sql/statement.h" 12 #include "sql/statement.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 namespace { 15 namespace {
16 16
17 size_t CountSQLItemsOfType(sql::Connection* db, const char* type) { 17 size_t CountSQLItemsOfType(sql::Connection* db, const char* type) {
18 const char kTypeSQL[] = "SELECT COUNT(*) FROM sqlite_master WHERE type = ?"; 18 const char kTypeSQL[] = "SELECT COUNT(*) FROM sqlite_master WHERE type = ?";
19 sql::Statement s(db->GetUniqueStatement(kTypeSQL)); 19 sql::Statement s(db->GetUniqueStatement(kTypeSQL));
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 sql::Statement statement(db->GetUniqueStatement("PRAGMA integrity_check")); 242 sql::Statement statement(db->GetUniqueStatement("PRAGMA integrity_check"));
243 243
244 // SQLite should always return a row of data. 244 // SQLite should always return a row of data.
245 EXPECT_TRUE(statement.Step()); 245 EXPECT_TRUE(statement.Step());
246 246
247 return statement.ColumnString(0); 247 return statement.ColumnString(0);
248 } 248 }
249 249
250 } // namespace test 250 } // namespace test
251 } // namespace sql 251 } // namespace sql
OLDNEW
« no previous file with comments | « sql/test/paths.cc ('k') | sql/transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698