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

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

Issue 259083002: Move mock_special_storage_policy from webkit/ to content/public/test/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/message_loop.h" 13 #include "base/message_loop/message_loop.h"
14 #include "content/public/test/mock_special_storage_policy.h"
14 #include "sql/connection.h" 15 #include "sql/connection.h"
15 #include "sql/meta_table.h" 16 #include "sql/meta_table.h"
16 #include "sql/statement.h" 17 #include "sql/statement.h"
17 #include "sql/transaction.h" 18 #include "sql/transaction.h"
18 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
19 #include "url/gurl.h" 20 #include "url/gurl.h"
20 #include "webkit/browser/quota/mock_special_storage_policy.h"
21 #include "webkit/browser/quota/quota_database.h" 21 #include "webkit/browser/quota/quota_database.h"
22 22
23 using quota::kStorageTypePersistent; 23 using quota::kStorageTypePersistent;
24 using quota::kStorageTypeTemporary; 24 using quota::kStorageTypeTemporary;
25 using quota::MockSpecialStoragePolicy;
26 using quota::QuotaDatabase; 25 using quota::QuotaDatabase;
27 26
28 namespace content { 27 namespace content {
29 namespace { 28 namespace {
30 29
31 const base::Time kZeroTime; 30 const base::Time kZeroTime;
32 31
33 const char kDBFileName[] = "quota_manager.db"; 32 const char kDBFileName[] = "quota_manager.db";
34 33
35 } // namespace 34 } // namespace
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 } 558 }
560 559
561 TEST_F(QuotaDatabaseTest, DumpOriginInfoTable) { 560 TEST_F(QuotaDatabaseTest, DumpOriginInfoTable) {
562 base::ScopedTempDir data_dir; 561 base::ScopedTempDir data_dir;
563 ASSERT_TRUE(data_dir.CreateUniqueTempDir()); 562 ASSERT_TRUE(data_dir.CreateUniqueTempDir());
564 const base::FilePath kDbFile = data_dir.path().AppendASCII(kDBFileName); 563 const base::FilePath kDbFile = data_dir.path().AppendASCII(kDBFileName);
565 DumpOriginInfoTable(kDbFile); 564 DumpOriginInfoTable(kDbFile);
566 DumpOriginInfoTable(base::FilePath()); 565 DumpOriginInfoTable(base::FilePath());
567 } 566 }
568 } // namespace content 567 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/quota/mock_quota_manager_unittest.cc ('k') | content/browser/quota/quota_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698