Chromium Code Reviews| Index: components/drive/drive_test_util.h |
| diff --git a/chrome/browser/chromeos/drive/drive_test_util.h b/components/drive/drive_test_util.h |
| similarity index 89% |
| rename from chrome/browser/chromeos/drive/drive_test_util.h |
| rename to components/drive/drive_test_util.h |
| index e7904cbba8637872b37646a533baf0ecc16f7843..a921fb694a4809a590ca2f7bb34ac1e06e18c530 100644 |
| --- a/chrome/browser/chromeos/drive/drive_test_util.h |
| +++ b/components/drive/drive_test_util.h |
| @@ -2,8 +2,8 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -#ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_TEST_UTIL_H_ |
| -#define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_TEST_UTIL_H_ |
| +#ifndef COMPONENTS_DRIVE_DRIVE_TEST_UTIL_H_ |
| +#define COMPONENTS_DRIVE_DRIVE_TEST_UTIL_H_ |
| #include <string> |
| @@ -13,7 +13,9 @@ |
| #include "net/base/io_buffer.h" |
| #include "net/base/network_change_notifier.h" |
| #include "net/base/test_completion_callback.h" |
| +#if defined(OS_CHROMEOS) |
| #include "third_party/cros_system_api/constants/cryptohome.h" |
| +#endif |
| class PrefRegistrySimple; |
| @@ -26,7 +28,11 @@ namespace drive { |
| namespace test_util { |
| // Disk space size used by FakeFreeDiskSpaceGetter. |
| +#if defined(OS_CHROMEOS) |
| const int64 kLotsOfSpace = cryptohome::kMinFreeSpaceInBytes * 10; |
| +#else |
| +const int64 kLotsOfSpace = 3ul * 1024ul * 1024ul * 1024ul; // 3GB |
|
Łukasz Anforowicz
2015/07/22 17:25:54
Replying to mtomasz@'s comment from crrev.com/1215
hashimoto
2015/07/23 06:01:15
nit: cryptohome::kMinFreeSpaceInBytes*10 = 5GB.
I
Łukasz Anforowicz
2015/07/27 17:53:27
Done. Initially I shied away from values greater
|
| +#endif |
| // Helper to destroy objects which needs Destroy() to be called on destruction. |
| // Note: When using this helper, you should destruct objects before |
| @@ -81,4 +87,4 @@ class FakeNetworkChangeNotifier : public net::NetworkChangeNotifier { |
| } // namespace test_util |
| } // namespace drive |
| -#endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_TEST_UTIL_H_ |
| +#endif // COMPONENTS_DRIVE_DRIVE_TEST_UTIL_H_ |