OLD | NEW |
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/bind.h" | 5 #include "base/bind.h" |
6 #include "base/basictypes.h" | 6 #include "base/basictypes.h" |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/message_loop_proxy.h" | 9 #include "base/message_loop_proxy.h" |
10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 additional_callback_count_(0), | 42 additional_callback_count_(0), |
43 deletion_status_(quota::kQuotaStatusUnknown) { | 43 deletion_status_(quota::kQuotaStatusUnknown) { |
44 } | 44 } |
45 | 45 |
46 void SetUp() { | 46 void SetUp() { |
47 ASSERT_TRUE(data_dir_.CreateUniqueTempDir()); | 47 ASSERT_TRUE(data_dir_.CreateUniqueTempDir()); |
48 file_system_context_ = | 48 file_system_context_ = |
49 new FileSystemContext( | 49 new FileSystemContext( |
50 base::MessageLoopProxy::current(), | 50 base::MessageLoopProxy::current(), |
51 base::MessageLoopProxy::current(), | 51 base::MessageLoopProxy::current(), |
| 52 base::MessageLoopProxy::current(), |
52 NULL, NULL, | 53 NULL, NULL, |
53 data_dir_.path(), | 54 data_dir_.path(), |
54 CreateDisallowFileAccessOptions()); | 55 CreateDisallowFileAccessOptions()); |
55 } | 56 } |
56 | 57 |
57 struct TestFile { | 58 struct TestFile { |
58 bool isDirectory; | 59 bool isDirectory; |
59 const char* name; | 60 const char* name; |
60 int64 size; | 61 int64 size; |
61 const char* origin_url; | 62 const char* origin_url; |
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 GetOriginUsage(quota_client.get(), | 580 GetOriginUsage(quota_client.get(), |
580 "https://bar.com/", | 581 "https://bar.com/", |
581 kPersistent)); | 582 kPersistent)); |
582 EXPECT_EQ(64 + file_paths_cost_temporary_bar_https, | 583 EXPECT_EQ(64 + file_paths_cost_temporary_bar_https, |
583 GetOriginUsage(quota_client.get(), | 584 GetOriginUsage(quota_client.get(), |
584 "https://bar.com/", | 585 "https://bar.com/", |
585 kTemporary)); | 586 kTemporary)); |
586 } | 587 } |
587 | 588 |
588 } // namespace fileapi | 589 } // namespace fileapi |
OLD | NEW |