chromium/base/files/file_proxy_unittest.cc

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40284755): Remove this and spanify to fix the errors.
#pragma allow_unsafe_buffers
#endif

#include "base/files/file_proxy.h"

#include <stddef.h>
#include <stdint.h>

#include <string_view>
#include <utility>

#include "base/containers/heap_array.h"
#include "base/files/file.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/bind.h"
#include "base/memory/weak_ptr.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "base/threading/platform_thread.h"
#include "base/threading/thread.h"
#include "base/threading/thread_restrictions.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace base {

class FileProxyTest : public testing::Test {};

TEST_F(FileProxyTest, CreateOrOpen_Create) {}

TEST_F(FileProxyTest, CreateOrOpen_Open) {}

TEST_F(FileProxyTest, CreateOrOpen_OpenNonExistent) {}

TEST_F(FileProxyTest, CreateOrOpen_AbandonedCreate) {}

TEST_F(FileProxyTest, Close) {}

TEST_F(FileProxyTest, CreateTemporary) {}

TEST_F(FileProxyTest, SetAndTake) {}

TEST_F(FileProxyTest, DuplicateFile) {}

TEST_F(FileProxyTest, GetInfo) {}

TEST_F(FileProxyTest, Read) {}

TEST_F(FileProxyTest, WriteAndFlush) {}

#if BUILDFLAG(IS_ANDROID)
// Flaky on Android, see http://crbug.com/489602
#define MAYBE_SetTimes
#else
#define MAYBE_SetTimes
#endif
TEST_F(FileProxyTest, MAYBE_SetTimes) {}

TEST_F(FileProxyTest, SetLength_Shrink) {}

TEST_F(FileProxyTest, SetLength_Expand) {}

}  // namespace base