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

Side by Side Diff: content/browser/fileapi/file_system_usage_cache_unittest.cc

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 12 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 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/file_system_usage_cache.h" 5 #include "storage/browser/fileapi/file_system_usage_cache.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <limits> 9 #include <limits>
10 10
11 #include "base/files/file_util.h" 11 #include "base/files/file_util.h"
12 #include "base/files/scoped_temp_dir.h" 12 #include "base/files/scoped_temp_dir.h"
13 #include "base/macros.h"
13 #include "base/message_loop/message_loop.h" 14 #include "base/message_loop/message_loop.h"
14 #include "base/thread_task_runner_handle.h" 15 #include "base/thread_task_runner_handle.h"
15 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
16 17
17 using storage::FileSystemUsageCache; 18 using storage::FileSystemUsageCache;
18 19
19 namespace content { 20 namespace content {
20 21
21 class FileSystemUsageCacheTest : public testing::Test { 22 class FileSystemUsageCacheTest : public testing::Test {
22 public: 23 public:
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 base::FilePath usage_file_path = GetUsageFilePath(); 154 base::FilePath usage_file_path = GetUsageFilePath();
154 EXPECT_FALSE(usage_cache()->IncrementDirty(usage_file_path)); 155 EXPECT_FALSE(usage_cache()->IncrementDirty(usage_file_path));
155 } 156 }
156 157
157 TEST_F(FileSystemUsageCacheTest, DecrementDirtyWithoutCacheFileTest) { 158 TEST_F(FileSystemUsageCacheTest, DecrementDirtyWithoutCacheFileTest) {
158 base::FilePath usage_file_path = GetUsageFilePath(); 159 base::FilePath usage_file_path = GetUsageFilePath();
159 EXPECT_FALSE(usage_cache()->IncrementDirty(usage_file_path)); 160 EXPECT_FALSE(usage_cache()->IncrementDirty(usage_file_path));
160 } 161 }
161 162
162 } // namespace content 163 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/fileapi/file_system_url_unittest.cc ('k') | content/browser/fileapi/file_writer_delegate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698