Searched refs:ScopedStdioFile (Results 1 - 5 of 5) sorted by relevance

/external/qemu/android/base/files/
H A DScopedStdioFile.h24 class ScopedStdioFile { class in namespace:android::base
27 ScopedStdioFile() : mFile(NULL) {} function in class:android::base::ScopedStdioFile
30 explicit ScopedStdioFile(FILE* file) : mFile(file) {} function in class:android::base::ScopedStdioFile
33 ~ScopedStdioFile() { close(); }
47 void swap(ScopedStdioFile* other) {
H A DScopedStdioFile_unittest.cpp12 #include "android/base/files/ScopedStdioFile.h"
26 TEST(ScopedStdioFile, DefaultConstructor) {
27 ScopedStdioFile f;
31 TEST(ScopedStdioFile, Constructor) {
32 ScopedStdioFile f(fopen(kNullFile, "rb"));
36 TEST(ScopedStdioFile, Release) {
38 ScopedStdioFile f(fopen(kNullFile, "rb"));
46 TEST(ScopedStdioFile, Close) {
47 ScopedStdioFile f(fopen(kNullFile, "rb"));
53 TEST(ScopedStdioFile, Swa
[all...]
/external/qemu/android/filesystems/
H A Dext4_utils_unittest.cpp16 #include "android/base/files/ScopedStdioFile.h"
32 using android::base::ScopedStdioFile;
56 ScopedStdioFile file(fopen(mTempFilePath.c_str(), "wb"));
H A Dext4_utils.cpp15 #include "android/base/files/ScopedStdioFile.h"
43 android::base::ScopedStdioFile file(::fopen(path, "rb"));
H A Dpartition_types_unittest.cpp15 #include "android/base/files/ScopedStdioFile.h"
30 using android::base::ScopedStdioFile;

Completed in 619 milliseconds