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

Side by Side Diff: content/browser/database_tracker_unittest.cc

Issue 2815743002: Move a couple of blob tests next to the files they cover. (Closed)
Patch Set: Fix gn check, take 2. Created 3 years, 8 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 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 <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/files/file.h" 10 #include "base/files/file.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/files/file_util.h" 12 #include "base/files/file_util.h"
13 #include "base/files/scoped_temp_dir.h" 13 #include "base/files/scoped_temp_dir.h"
14 #include "base/message_loop/message_loop.h" 14 #include "base/message_loop/message_loop.h"
15 #include "base/strings/utf_string_conversions.h" 15 #include "base/strings/utf_string_conversions.h"
16 #include "base/threading/thread_task_runner_handle.h" 16 #include "base/threading/thread_task_runner_handle.h"
17 #include "base/time/time.h" 17 #include "base/time/time.h"
18 #include "content/public/test/mock_special_storage_policy.h"
19 #include "net/base/net_errors.h" 18 #include "net/base/net_errors.h"
20 #include "net/base/test_completion_callback.h" 19 #include "net/base/test_completion_callback.h"
21 #include "storage/browser/database/database_tracker.h" 20 #include "storage/browser/database/database_tracker.h"
22 #include "storage/browser/quota/quota_manager_proxy.h" 21 #include "storage/browser/quota/quota_manager_proxy.h"
22 #include "storage/browser/test/mock_special_storage_policy.h"
23 #include "storage/common/database/database_identifier.h" 23 #include "storage/common/database/database_identifier.h"
24 #include "testing/gtest/include/gtest/gtest.h" 24 #include "testing/gtest/include/gtest/gtest.h"
25 #include "third_party/sqlite/sqlite3.h" 25 #include "third_party/sqlite/sqlite3.h"
26 26
27 using base::ASCIIToUTF16; 27 using base::ASCIIToUTF16;
28 using storage::DatabaseConnections; 28 using storage::DatabaseConnections;
29 using storage::DatabaseTracker; 29 using storage::DatabaseTracker;
30 using storage::OriginInfo; 30 using storage::OriginInfo;
31 31
32 namespace { 32 namespace {
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 846
847 TEST(DatabaseTrackerTest, EmptyDatabaseNameIsValid) { 847 TEST(DatabaseTrackerTest, EmptyDatabaseNameIsValid) {
848 DatabaseTracker_TestHelper_Test::EmptyDatabaseNameIsValid(); 848 DatabaseTracker_TestHelper_Test::EmptyDatabaseNameIsValid();
849 } 849 }
850 850
851 TEST(DatabaseTrackerTest, HandleSqliteError) { 851 TEST(DatabaseTrackerTest, HandleSqliteError) {
852 DatabaseTracker_TestHelper_Test::HandleSqliteError(); 852 DatabaseTracker_TestHelper_Test::HandleSqliteError();
853 } 853 }
854 854
855 } // namespace content 855 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698