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

Side by Side Diff: components/drive/fake_free_disk_space_getter.cc

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « components/drive/fake_free_disk_space_getter.h ('k') | components/drive/file_cache.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "components/drive/fake_free_disk_space_getter.h" 5 #include "components/drive/fake_free_disk_space_getter.h"
6 6
7 #include "components/drive/drive_test_util.h" 7 #include "components/drive/drive_test_util.h"
8 8
9 namespace drive { 9 namespace drive {
10 10
11 FakeFreeDiskSpaceGetter::FakeFreeDiskSpaceGetter() 11 FakeFreeDiskSpaceGetter::FakeFreeDiskSpaceGetter()
12 : default_value_(test_util::kLotsOfSpace) { 12 : default_value_(test_util::kLotsOfSpace) {
13 } 13 }
14 14
15 FakeFreeDiskSpaceGetter::~FakeFreeDiskSpaceGetter() { 15 FakeFreeDiskSpaceGetter::~FakeFreeDiskSpaceGetter() {
16 } 16 }
17 17
18 void FakeFreeDiskSpaceGetter::PushFakeValue(int64 value) { 18 void FakeFreeDiskSpaceGetter::PushFakeValue(int64_t value) {
19 fake_values_.push_back(value); 19 fake_values_.push_back(value);
20 } 20 }
21 21
22 int64 FakeFreeDiskSpaceGetter::AmountOfFreeDiskSpace() { 22 int64_t FakeFreeDiskSpaceGetter::AmountOfFreeDiskSpace() {
23 if (fake_values_.empty()) 23 if (fake_values_.empty())
24 return default_value_; 24 return default_value_;
25 25
26 const int64 value = fake_values_.front(); 26 const int64_t value = fake_values_.front();
27 fake_values_.pop_front(); 27 fake_values_.pop_front();
28 return value; 28 return value;
29 } 29 }
30 30
31 } // namespace drive 31 } // namespace drive
OLDNEW
« no previous file with comments | « components/drive/fake_free_disk_space_getter.h ('k') | components/drive/file_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698