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

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

Issue 559063002: Remove webkit/browser/, point everything to storage/browser/ instead (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean up DEPS per feedback 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
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 <map> 5 #include <map>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/message_loop/message_loop_proxy.h" 9 #include "base/message_loop/message_loop_proxy.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "net/base/completion_callback.h" 12 #include "net/base/completion_callback.h"
13 #include "net/base/net_errors.h" 13 #include "net/base/net_errors.h"
14 #include "storage/browser/database/database_quota_client.h"
15 #include "storage/browser/database/database_tracker.h"
16 #include "storage/browser/database/database_util.h"
14 #include "storage/common/database/database_identifier.h" 17 #include "storage/common/database/database_identifier.h"
15 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
16 #include "webkit/browser/database/database_quota_client.h"
17 #include "webkit/browser/database/database_tracker.h"
18 #include "webkit/browser/database/database_util.h"
19 19
20 using storage::DatabaseQuotaClient; 20 using storage::DatabaseQuotaClient;
21 using storage::DatabaseTracker; 21 using storage::DatabaseTracker;
22 using storage::OriginInfo; 22 using storage::OriginInfo;
23 23
24 namespace content { 24 namespace content {
25 25
26 // Declared to shorten the line lengths. 26 // Declared to shorten the line lengths.
27 static const storage::StorageType kTemp = storage::kStorageTypeTemporary; 27 static const storage::StorageType kTemp = storage::kStorageTypeTemporary;
28 static const storage::StorageType kPerm = storage::kStorageTypePersistent; 28 static const storage::StorageType kPerm = storage::kStorageTypePersistent;
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 mock_tracker()->set_async_delete(false); 276 mock_tracker()->set_async_delete(false);
277 EXPECT_TRUE(DeleteOriginData(&client, kTemp, kOriginA)); 277 EXPECT_TRUE(DeleteOriginData(&client, kTemp, kOriginA));
278 EXPECT_EQ(1, mock_tracker()->delete_called_count()); 278 EXPECT_EQ(1, mock_tracker()->delete_called_count());
279 279
280 mock_tracker()->set_async_delete(true); 280 mock_tracker()->set_async_delete(true);
281 EXPECT_TRUE(DeleteOriginData(&client, kTemp, kOriginA)); 281 EXPECT_TRUE(DeleteOriginData(&client, kTemp, kOriginA));
282 EXPECT_EQ(2, mock_tracker()->delete_called_count()); 282 EXPECT_EQ(2, mock_tracker()->delete_called_count());
283 } 283 }
284 284
285 } // namespace content 285 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/child_process_security_policy_unittest.cc ('k') | content/browser/database_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698