chromium/remoting/host/webauthn/remote_webauthn_extension_notifier_unittest.cc

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

#include "remoting/host/webauthn/remote_webauthn_extension_notifier.h"

#include <memory>

#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/memory/ptr_util.h"
#include "base/memory/scoped_refptr.h"
#include "base/run_loop.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/thread_pool.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace remoting {

namespace {

void AssertExtensionIdWakeupFilesExist(const base::FilePath& path_prefix) {}

void AssertExtensionIdWakeupFilesNotExist(const base::FilePath& path_prefix) {}

void DeleteExtensionIdWakeupFiles(const base::FilePath& path_prefix) {}

}  // namespace

class RemoteWebAuthnExtensionNotifierTest : public testing::Test {};

RemoteWebAuthnExtensionNotifierTest::RemoteWebAuthnExtensionNotifierTest() {}

RemoteWebAuthnExtensionNotifierTest::~RemoteWebAuthnExtensionNotifierTest() {}

void RemoteWebAuthnExtensionNotifierTest::WaitForNextIoTask() {}

TEST_F(RemoteWebAuthnExtensionNotifierTest, WritesFileInBothDirectories) {}

TEST_F(RemoteWebAuthnExtensionNotifierTest,
       WritesFilesOnlyInExistingDirectory) {}

TEST_F(RemoteWebAuthnExtensionNotifierTest, FilesRewrittenAfterSecondCall) {}

TEST_F(RemoteWebAuthnExtensionNotifierTest,
       FileWrittenWhenNotifierIsDeletedRightAfterNotifyStateChangeIsCalled) {}

TEST_F(RemoteWebAuthnExtensionNotifierTest,
       OnlyOneExtensionWakeupTaskIsScheduledForMultipleCalls) {}

}  // namespace remoting