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

Side by Side Diff: content/browser/fileapi/file_system_quota_client_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <stdint.h> 5 #include <stdint.h>
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
11 #include "base/files/scoped_temp_dir.h" 11 #include "base/files/scoped_temp_dir.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/run_loop.h" 13 #include "base/run_loop.h"
14 #include "base/test/scoped_task_environment.h" 14 #include "base/test/scoped_task_environment.h"
15 #include "content/public/test/async_file_test_helper.h"
16 #include "content/public/test/test_file_system_context.h"
17 #include "storage/browser/fileapi/file_system_context.h" 15 #include "storage/browser/fileapi/file_system_context.h"
18 #include "storage/browser/fileapi/file_system_quota_client.h" 16 #include "storage/browser/fileapi/file_system_quota_client.h"
19 #include "storage/browser/fileapi/file_system_usage_cache.h" 17 #include "storage/browser/fileapi/file_system_usage_cache.h"
20 #include "storage/browser/fileapi/obfuscated_file_util.h" 18 #include "storage/browser/fileapi/obfuscated_file_util.h"
19 #include "storage/browser/test/async_file_test_helper.h"
20 #include "storage/browser/test/test_file_system_context.h"
21 #include "storage/common/fileapi/file_system_types.h" 21 #include "storage/common/fileapi/file_system_types.h"
22 #include "storage/common/fileapi/file_system_util.h" 22 #include "storage/common/fileapi/file_system_util.h"
23 #include "storage/common/quota/quota_types.h" 23 #include "storage/common/quota/quota_types.h"
24 #include "testing/gtest/include/gtest/gtest.h" 24 #include "testing/gtest/include/gtest/gtest.h"
25 #include "url/gurl.h" 25 #include "url/gurl.h"
26 26
27 using content::AsyncFileTestHelper; 27 using content::AsyncFileTestHelper;
28 using storage::FileSystemQuotaClient; 28 using storage::FileSystemQuotaClient;
29 using storage::FileSystemURL; 29 using storage::FileSystemURL;
30 30
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 GetOriginUsage(quota_client.get(), 563 GetOriginUsage(quota_client.get(),
564 "https://bar.com/", 564 "https://bar.com/",
565 kPersistent)); 565 kPersistent));
566 EXPECT_EQ(64 + file_paths_cost_temporary_bar_https, 566 EXPECT_EQ(64 + file_paths_cost_temporary_bar_https,
567 GetOriginUsage(quota_client.get(), 567 GetOriginUsage(quota_client.get(),
568 "https://bar.com/", 568 "https://bar.com/",
569 kTemporary)); 569 kTemporary));
570 } 570 }
571 571
572 } // namespace content 572 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698