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 "storage/browser/fileapi/quota/quota_backend_impl.h" | 5 #include "storage/browser/fileapi/quota/quota_backend_impl.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
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/memory/scoped_ptr.h" |
13 #include "base/thread_task_runner_handle.h" | 14 #include "base/thread_task_runner_handle.h" |
14 #include "storage/browser/fileapi/file_system_usage_cache.h" | 15 #include "storage/browser/fileapi/file_system_usage_cache.h" |
15 #include "storage/browser/fileapi/obfuscated_file_util.h" | 16 #include "storage/browser/fileapi/obfuscated_file_util.h" |
16 #include "storage/browser/quota/quota_manager_proxy.h" | 17 #include "storage/browser/quota/quota_manager_proxy.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
18 #include "third_party/leveldatabase/src/helpers/memenv/memenv.h" | 19 #include "third_party/leveldatabase/src/helpers/memenv/memenv.h" |
19 #include "third_party/leveldatabase/src/include/leveldb/env.h" | 20 #include "third_party/leveldatabase/src/include/leveldb/env.h" |
20 | 21 |
21 using storage::FileSystemUsageCache; | 22 using storage::FileSystemUsageCache; |
22 using storage::ObfuscatedFileUtil; | 23 using storage::ObfuscatedFileUtil; |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 uint32_t dirty = 0; | 266 uint32_t dirty = 0; |
266 ASSERT_TRUE(file_system_usage_cache_.GetDirty(path, &dirty)); | 267 ASSERT_TRUE(file_system_usage_cache_.GetDirty(path, &dirty)); |
267 EXPECT_EQ(1u, dirty); | 268 EXPECT_EQ(1u, dirty); |
268 | 269 |
269 backend_->DecrementDirtyCount(GURL(kOrigin), type); | 270 backend_->DecrementDirtyCount(GURL(kOrigin), type); |
270 ASSERT_TRUE(file_system_usage_cache_.GetDirty(path, &dirty)); | 271 ASSERT_TRUE(file_system_usage_cache_.GetDirty(path, &dirty)); |
271 EXPECT_EQ(0u, dirty); | 272 EXPECT_EQ(0u, dirty); |
272 } | 273 } |
273 | 274 |
274 } // namespace content | 275 } // namespace content |
OLD | NEW |