Index: chrome/common/extensions/image_writer/image_writer_test_util_mac.h |
diff --git a/chrome/common/extensions/image_writer/image_writer_test_util_mac.h b/chrome/common/extensions/image_writer/image_writer_test_util_mac.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..83c75ed705bd2f0d9acda0072584950b83b87be5 |
--- /dev/null |
+++ b/chrome/common/extensions/image_writer/image_writer_test_util_mac.h |
@@ -0,0 +1,36 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_COMMON_EXTENSIONS_IMAGE_WRITER_IMAGE_WRITER_TEST_UTIL_MAC_H_ |
+#define CHROME_COMMON_EXTENSIONS_IMAGE_WRITER_IMAGE_WRITER_TEST_UTIL_MAC_H_ |
+ |
+#include <CoreFoundation/CoreFoundation.h> |
+#include <IOKit/storage/IOStorageProtocolCharacteristics.h> |
+ |
+#include "base/mac/foundation_util.h" |
+#include "base/strings/sys_string_conversions.h" |
+ |
+namespace extensions { |
+namespace image_writer { |
+ |
+// The different types of disks we want to configure. |
+typedef enum DriveType { |
Robert Sesek
2014/06/10 19:47:46
In C++, just |enum DriveType| is enough to declare
Drew Haven
2014/06/12 02:24:26
Done. Bad habit.
|
+ FIXED, |
+ USB, |
+ SD, |
+ CD, |
+} DriveType; |
+ |
+// Creates a disk-description dictionary. |
+base::ScopedCFTypeRef<CFDictionaryRef> CreateDiskDictionary( |
+ const std::string& bsd_name, |
+ const std::string& vendor, |
+ const std::string& model, |
+ int64 capacity, |
+ DriveType type); |
+ |
+} // image_writer |
+} // extensions |
+ |
+#endif // CHROME_COMMON_EXTENSIONS_IMAGE_WRITER_IMAGE_WRITER_TEST_UTIL_H_ |