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

Side by Side Diff: webkit/browser/fileapi/file_system_quota_client_unittest.cc

Issue 15535006: Move browser-specific FileAPI code from webkit/fileapi to webkit/browser/fileapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 (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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/message_loop_proxy.h" 10 #include "base/message_loop_proxy.h"
11 #include "base/platform_file.h" 11 #include "base/platform_file.h"
12 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 #include "webkit/browser/fileapi/file_system_quota_client.h"
14 #include "webkit/browser/fileapi/file_system_usage_cache.h" 15 #include "webkit/browser/fileapi/file_system_usage_cache.h"
15 #include "webkit/browser/fileapi/obfuscated_file_util.h" 16 #include "webkit/browser/fileapi/obfuscated_file_util.h"
16 #include "webkit/browser/fileapi/sandbox_mount_point_provider.h" 17 #include "webkit/browser/fileapi/sandbox_mount_point_provider.h"
17 #include "webkit/fileapi/file_system_context.h" 18 #include "webkit/fileapi/file_system_context.h"
18 #include "webkit/fileapi/file_system_operation_context.h" 19 #include "webkit/fileapi/file_system_operation_context.h"
19 #include "webkit/fileapi/file_system_quota_client.h"
20 #include "webkit/fileapi/file_system_types.h" 20 #include "webkit/fileapi/file_system_types.h"
21 #include "webkit/fileapi/file_system_util.h" 21 #include "webkit/fileapi/file_system_util.h"
22 #include "webkit/fileapi/mock_file_system_context.h" 22 #include "webkit/fileapi/mock_file_system_context.h"
23 #include "webkit/quota/quota_types.h" 23 #include "webkit/quota/quota_types.h"
24 24
25 namespace fileapi { 25 namespace fileapi {
26 namespace { 26 namespace {
27 27
28 const char kDummyURL1[] = "http://www.dummy.org"; 28 const char kDummyURL1[] = "http://www.dummy.org";
29 const char kDummyURL2[] = "http://www.example.com"; 29 const char kDummyURL2[] = "http://www.example.com";
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 GetOriginUsage(quota_client.get(), 579 GetOriginUsage(quota_client.get(),
580 "https://bar.com/", 580 "https://bar.com/",
581 kPersistent)); 581 kPersistent));
582 EXPECT_EQ(64 + file_paths_cost_temporary_bar_https, 582 EXPECT_EQ(64 + file_paths_cost_temporary_bar_https,
583 GetOriginUsage(quota_client.get(), 583 GetOriginUsage(quota_client.get(),
584 "https://bar.com/", 584 "https://bar.com/",
585 kTemporary)); 585 kTemporary));
586 } 586 }
587 587
588 } // namespace fileapi 588 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/file_system_quota_client.cc ('k') | webkit/browser/fileapi/file_system_quota_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698