Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_COMMON_EXTENSIONS_IMAGE_WRITER_IMAGE_WRITER_TEST_UTIL_MAC_H_ | |
| 6 #define CHROME_COMMON_EXTENSIONS_IMAGE_WRITER_IMAGE_WRITER_TEST_UTIL_MAC_H_ | |
| 7 | |
| 8 #include <CoreFoundation/CoreFoundation.h> | |
| 9 #include <IOKit/storage/IOStorageProtocolCharacteristics.h> | |
| 10 | |
| 11 #include "base/mac/foundation_util.h" | |
| 12 #include "base/strings/sys_string_conversions.h" | |
| 13 | |
| 14 namespace extensions { | |
| 15 namespace image_writer { | |
| 16 | |
| 17 // The different types of disks we want to configure. | |
| 18 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.
| |
| 19 FIXED, | |
| 20 USB, | |
| 21 SD, | |
| 22 CD, | |
| 23 } DriveType; | |
| 24 | |
| 25 // Creates a disk-description dictionary. | |
| 26 base::ScopedCFTypeRef<CFDictionaryRef> CreateDiskDictionary( | |
| 27 const std::string& bsd_name, | |
| 28 const std::string& vendor, | |
| 29 const std::string& model, | |
| 30 int64 capacity, | |
| 31 DriveType type); | |
| 32 | |
| 33 } // image_writer | |
| 34 } // extensions | |
| 35 | |
| 36 #endif // CHROME_COMMON_EXTENSIONS_IMAGE_WRITER_IMAGE_WRITER_TEST_UTIL_H_ | |
| OLD | NEW |