#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "sandbox/linux/tests/scoped_temporary_file.h"
#include <errno.h>
#include <fcntl.h>
#include <stddef.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <string>
#include "base/files/scoped_file.h"
#include "base/posix/eintr_wrapper.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace sandbox {
namespace {
bool FullWrite(int fd, const char* buffer, size_t count) { … }
bool FullRead(int fd, char* buffer, size_t count) { … }
TEST(ScopedTemporaryFile, Basics) { … }
}
}