#include "chrome/browser/ui/webui/print_preview/pdf_printer_handler.h"
#include <sys/stat.h>
#include <sys/types.h>
#include <ios>
#include "base/check.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/callback_helpers.h"
#include "base/logging.h"
#include "base/memory/ref_counted_memory.h"
#include "base/run_loop.h"
#include "chrome/test/base/browser_with_test_window_test.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace printing {
namespace {
constexpr uint8_t kDummyData[] = …;
base::FilePath CreateDirWithMode(const base::FilePath& base_path, int mode) { … }
int GetFilePermissions(const base::FilePath& file_path) { … }
class ScopedUmaskSetter { … };
class FakePdfPrinterHandler : public PdfPrinterHandler { … };
}
class PdfPrinterHandlerPosixTest : public BrowserWithTestWindowTest { … };
TEST_F(PdfPrinterHandlerPosixTest, SaveAsPdfFilePermissions) { … }
}