#include "third_party/blink/renderer/core/fileapi/file.h"
#include "base/run_loop.h"
#include "base/task/thread_pool.h"
#include "base/test/bind.h"
#include "base/time/time.h"
#include "mojo/public/cpp/bindings/receiver_set.h"
#include "mojo/public/cpp/bindings/self_owned_receiver.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/thread_safe_browser_interface_broker_proxy.h"
#include "third_party/blink/public/mojom/file/file_utilities.mojom-blink.h"
#include "third_party/blink/public/mojom/filesystem/file_system.mojom-blink.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/renderer/bindings/core/v8/serialization/serialized_script_value.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_testing.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/testing/null_execution_context.h"
#include "third_party/blink/renderer/platform/blob/testing/fake_blob.h"
#include "third_party/blink/renderer/platform/file_metadata.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/scheduler/public/post_cross_thread_task.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_copier_base.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_copier_mojo.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_functional.h"
namespace blink {
namespace {
class MockBlob : public FakeBlob { … };
MockRegisterBlobCallback;
class MockFileSystemManager : public mojom::blink::FileSystemManager { … };
void ExpectTimestampIsNow(const File& file) { … }
}
TEST(FileTest, NativeFileWithoutTimestamp) { … }
TEST(FileTest, NativeFileWithUnixEpochTimestamp) { … }
TEST(FileTest, NativeFileWithApocalypseTimestamp) { … }
TEST(FileTest, BlobBackingFileWithoutTimestamp) { … }
TEST(FileTest, BlobBackingFileWithWindowsEpochTimestamp) { … }
TEST(FileTest, BlobBackingFileWithUnixEpochTimestamp) { … }
TEST(FileTest, BlobBackingFileWithApocalypseTimestamp) { … }
TEST(FileTest, fileSystemFileWithNativeSnapshot) { … }
TEST(FileTest, fileSystemFileWithNativeSnapshotAndSize) { … }
TEST(FileTest, FileSystemFileWithWindowsEpochTimestamp) { … }
TEST(FileTest, FileSystemFileWithUnixEpochTimestamp) { … }
TEST(FileTest, FileSystemFileWithApocalypseTimestamp) { … }
TEST(FileTest, fileSystemFileWithoutNativeSnapshot) { … }
TEST(FileTest, hsaSameSource) { … }
TEST(FileTest, createForFileSystem) { … }
}