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

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

Issue 16010007: Move webkit/quota files to webkit/browser/quota or webkit/common/quota (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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/browser/quota/quota_database.cc ('k') | webkit/browser/quota/quota_manager.h » ('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) 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 <algorithm> 5 #include <algorithm>
6 #include <iterator> 6 #include <iterator>
7 #include <set> 7 #include <set>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/file_util.h" 11 #include "base/file_util.h"
12 #include "base/files/scoped_temp_dir.h" 12 #include "base/files/scoped_temp_dir.h"
13 #include "base/message_loop.h" 13 #include "base/message_loop.h"
14 #include "googleurl/src/gurl.h" 14 #include "googleurl/src/gurl.h"
15 #include "sql/connection.h" 15 #include "sql/connection.h"
16 #include "sql/meta_table.h" 16 #include "sql/meta_table.h"
17 #include "sql/statement.h" 17 #include "sql/statement.h"
18 #include "sql/transaction.h" 18 #include "sql/transaction.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 #include "webkit/quota/mock_special_storage_policy.h" 20 #include "webkit/browser/quota/mock_special_storage_policy.h"
21 #include "webkit/quota/quota_database.h" 21 #include "webkit/browser/quota/quota_database.h"
22 22
23 namespace quota { 23 namespace quota {
24 namespace { 24 namespace {
25 25
26 const base::Time kZeroTime; 26 const base::Time kZeroTime;
27 27
28 class TestErrorDelegate : public sql::ErrorDelegate { 28 class TestErrorDelegate : public sql::ErrorDelegate {
29 public: 29 public:
30 virtual int OnError(int error, 30 virtual int OnError(int error,
31 sql::Connection* connection, 31 sql::Connection* connection,
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 } 570 }
571 571
572 TEST_F(QuotaDatabaseTest, DumpOriginInfoTable) { 572 TEST_F(QuotaDatabaseTest, DumpOriginInfoTable) {
573 base::ScopedTempDir data_dir; 573 base::ScopedTempDir data_dir;
574 ASSERT_TRUE(data_dir.CreateUniqueTempDir()); 574 ASSERT_TRUE(data_dir.CreateUniqueTempDir());
575 const base::FilePath kDbFile = data_dir.path().AppendASCII("quota_manager.db") ; 575 const base::FilePath kDbFile = data_dir.path().AppendASCII("quota_manager.db") ;
576 DumpOriginInfoTable(kDbFile); 576 DumpOriginInfoTable(kDbFile);
577 DumpOriginInfoTable(base::FilePath()); 577 DumpOriginInfoTable(base::FilePath());
578 } 578 }
579 } // namespace quota 579 } // namespace quota
OLDNEW
« no previous file with comments | « webkit/browser/quota/quota_database.cc ('k') | webkit/browser/quota/quota_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698