| OLD | NEW | 
|     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 <algorithm> |     8 #include <algorithm> | 
|     9 #include <memory> |     9 #include <memory> | 
|    10 #include <set> |    10 #include <set> | 
|    11 #include <sstream> |    11 #include <sstream> | 
|    12 #include <vector> |    12 #include <vector> | 
|    13  |    13  | 
|    14 #include "base/bind.h" |    14 #include "base/bind.h" | 
|    15 #include "base/files/file_util.h" |    15 #include "base/files/file_util.h" | 
|    16 #include "base/files/scoped_temp_dir.h" |    16 #include "base/files/scoped_temp_dir.h" | 
|    17 #include "base/macros.h" |    17 #include "base/macros.h" | 
|    18 #include "base/memory/ptr_util.h" |    18 #include "base/memory/ptr_util.h" | 
|    19 #include "base/memory/weak_ptr.h" |    19 #include "base/memory/weak_ptr.h" | 
|    20 #include "base/run_loop.h" |    20 #include "base/run_loop.h" | 
|    21 #include "base/stl_util.h" |    21 #include "base/stl_util.h" | 
|    22 #include "base/sys_info.h" |    22 #include "base/sys_info.h" | 
|    23 #include "base/test/histogram_tester.h" |    23 #include "base/test/histogram_tester.h" | 
|    24 #include "base/threading/thread_task_runner_handle.h" |    24 #include "base/threading/thread_task_runner_handle.h" | 
|    25 #include "base/time/time.h" |    25 #include "base/time/time.h" | 
|    26 #include "content/public/test/mock_special_storage_policy.h" |  | 
|    27 #include "content/public/test/mock_storage_client.h" |  | 
|    28 #include "storage/browser/quota/quota_database.h" |    26 #include "storage/browser/quota/quota_database.h" | 
|    29 #include "storage/browser/quota/quota_manager.h" |    27 #include "storage/browser/quota/quota_manager.h" | 
|    30 #include "storage/browser/quota/quota_manager_proxy.h" |    28 #include "storage/browser/quota/quota_manager_proxy.h" | 
 |    29 #include "storage/browser/test/mock_special_storage_policy.h" | 
 |    30 #include "storage/browser/test/mock_storage_client.h" | 
|    31 #include "testing/gtest/include/gtest/gtest.h" |    31 #include "testing/gtest/include/gtest/gtest.h" | 
|    32 #include "url/gurl.h" |    32 #include "url/gurl.h" | 
|    33  |    33  | 
|    34 using storage::kQuotaErrorAbort; |    34 using storage::kQuotaErrorAbort; | 
|    35 using storage::kQuotaErrorInvalidModification; |    35 using storage::kQuotaErrorInvalidModification; | 
|    36 using storage::kQuotaErrorNotSupported; |    36 using storage::kQuotaErrorNotSupported; | 
|    37 using storage::kQuotaStatusOk; |    37 using storage::kQuotaStatusOk; | 
|    38 using storage::kQuotaStatusUnknown; |    38 using storage::kQuotaStatusUnknown; | 
|    39 using storage::kStorageTypePersistent; |    39 using storage::kStorageTypePersistent; | 
|    40 using storage::kStorageTypeSyncable; |    40 using storage::kStorageTypeSyncable; | 
| (...skipping 2261 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  2302   base::FilePath tmp_dir; |  2302   base::FilePath tmp_dir; | 
|  2303   ASSERT_TRUE(base::GetTempDir(&tmp_dir)); |  2303   ASSERT_TRUE(base::GetTempDir(&tmp_dir)); | 
|  2304   uint64_t available_space = 0; |  2304   uint64_t available_space = 0; | 
|  2305   uint64_t total_size = 0; |  2305   uint64_t total_size = 0; | 
|  2306   EXPECT_TRUE(GetVolumeInfo(tmp_dir, &available_space, &total_size)); |  2306   EXPECT_TRUE(GetVolumeInfo(tmp_dir, &available_space, &total_size)); | 
|  2307   EXPECT_GT(available_space, 0u) << tmp_dir.value(); |  2307   EXPECT_GT(available_space, 0u) << tmp_dir.value(); | 
|  2308   EXPECT_GT(total_size, 0u) << tmp_dir.value(); |  2308   EXPECT_GT(total_size, 0u) << tmp_dir.value(); | 
|  2309 } |  2309 } | 
|  2310  |  2310  | 
|  2311 }  // namespace content |  2311 }  // namespace content | 
| OLD | NEW |