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 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FAKE_FREE_DISK_SPACE_GETTER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FAKE_FREE_DISK_SPACE_GETTER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FAKE_FREE_DISK_SPACE_GETTER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FAKE_FREE_DISK_SPACE_GETTER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 // Pushes the given value to the back of the fake value list. | 24 // Pushes the given value to the back of the fake value list. |
25 // | 25 // |
26 // If the fake value list is empty, AmountOfFreeDiskSpace() will return | 26 // If the fake value list is empty, AmountOfFreeDiskSpace() will return |
27 // |default_value_| repeatedly. | 27 // |default_value_| repeatedly. |
28 // Otherwise, AmountOfFreeDiskSpace() will return the value at the front of | 28 // Otherwise, AmountOfFreeDiskSpace() will return the value at the front of |
29 // the list and removes it from the list. | 29 // the list and removes it from the list. |
30 void PushFakeValue(int64 value); | 30 void PushFakeValue(int64 value); |
31 | 31 |
32 // FreeDiskSpaceGetterInterface overrides. | 32 // FreeDiskSpaceGetterInterface overrides. |
33 virtual int64 AmountOfFreeDiskSpace() OVERRIDE; | 33 virtual int64 AmountOfFreeDiskSpace() override; |
34 | 34 |
35 private: | 35 private: |
36 std::list<int64> fake_values_; | 36 std::list<int64> fake_values_; |
37 int64 default_value_; | 37 int64 default_value_; |
38 | 38 |
39 DISALLOW_COPY_AND_ASSIGN(FakeFreeDiskSpaceGetter); | 39 DISALLOW_COPY_AND_ASSIGN(FakeFreeDiskSpaceGetter); |
40 }; | 40 }; |
41 | 41 |
42 } // namespace drive | 42 } // namespace drive |
43 | 43 |
44 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FAKE_FREE_DISK_SPACE_GETTER_H_ | 44 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FAKE_FREE_DISK_SPACE_GETTER_H_ |
OLD | NEW |