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

Unified Diff: components/drive/test_util.h

Issue 1215503010: OBSOLETE: Move (most of) chrome/browser/chromeos/drive into components/drive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@drive-componentize-service
Patch Set: Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: components/drive/test_util.h
diff --git a/chrome/browser/chromeos/drive/test_util.h b/components/drive/test_util.h
similarity index 90%
rename from chrome/browser/chromeos/drive/test_util.h
rename to components/drive/test_util.h
index 2e418a8b1aae86bafbbb8693171cee3da401ace3..1cb522c33d47bd19f984bcaf532c47cb4fecb6b8 100644
--- a/chrome/browser/chromeos/drive/test_util.h
+++ b/components/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_TEST_UTIL_H_
-#define CHROME_BROWSER_CHROMEOS_DRIVE_TEST_UTIL_H_
+#ifndef COMPONENTS_DRIVE_TEST_UTIL_H_
+#define COMPONENTS_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 kMinFreeSpaceInBytes = 10 * 512 * 1LL << 20;
mtomasz 2015/07/02 07:36:34 nit: ditto?
+#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_TEST_UTIL_H_
+#endif // COMPONENTS_DRIVE_TEST_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698