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

Side by Side Diff: webkit/quota/quota_database_unittest.cc

Issue 7353026: Move app/sql/* files to sql/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 9 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « webkit/quota/quota_database.cc ('k') | webkit/support/DEPS » ('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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <algorithm> 5 #include <algorithm>
6 #include <iterator> 6 #include <iterator>
7 #include <set> 7 #include <set>
8 8
9 #include "app/sql/connection.h"
10 #include "app/sql/meta_table.h"
11 #include "app/sql/statement.h"
12 #include "app/sql/transaction.h"
13 #include "base/bind.h" 9 #include "base/bind.h"
14 #include "base/callback.h" 10 #include "base/callback.h"
15 #include "base/file_util.h" 11 #include "base/file_util.h"
16 #include "base/scoped_temp_dir.h" 12 #include "base/scoped_temp_dir.h"
17 #include "googleurl/src/gurl.h" 13 #include "googleurl/src/gurl.h"
14 #include "sql/connection.h"
15 #include "sql/meta_table.h"
16 #include "sql/statement.h"
17 #include "sql/transaction.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 #include "webkit/quota/mock_special_storage_policy.h" 19 #include "webkit/quota/mock_special_storage_policy.h"
20 #include "webkit/quota/quota_database.h" 20 #include "webkit/quota/quota_database.h"
21 21
22 namespace quota { 22 namespace quota {
23 namespace { 23 namespace {
24 24
25 const base::Time kZeroTime; 25 const base::Time kZeroTime;
26 26
27 class TestErrorDelegate : public sql::ErrorDelegate { 27 class TestErrorDelegate : public sql::ErrorDelegate {
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 } 554 }
555 555
556 TEST_F(QuotaDatabaseTest, DumpOriginInfoTable) { 556 TEST_F(QuotaDatabaseTest, DumpOriginInfoTable) {
557 ScopedTempDir data_dir; 557 ScopedTempDir data_dir;
558 ASSERT_TRUE(data_dir.CreateUniqueTempDir()); 558 ASSERT_TRUE(data_dir.CreateUniqueTempDir());
559 const FilePath kDbFile = data_dir.path().AppendASCII("quota_manager.db"); 559 const FilePath kDbFile = data_dir.path().AppendASCII("quota_manager.db");
560 DumpOriginInfoTable(kDbFile); 560 DumpOriginInfoTable(kDbFile);
561 DumpOriginInfoTable(FilePath()); 561 DumpOriginInfoTable(FilePath());
562 } 562 }
563 } // namespace quota 563 } // namespace quota
OLDNEW
« no previous file with comments | « webkit/quota/quota_database.cc ('k') | webkit/support/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698