chromium/remoting/host/remote_open_url/remote_open_url_message_handler_unittest.cc

// Copyright 2021 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/remote_open_url/remote_open_url_message_handler.h"

#include <cstdint>
#include <memory>

#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/scoped_refptr.h"
#include "base/run_loop.h"
#include "base/test/gmock_callback_support.h"
#include "base/test/mock_callback.h"
#include "base/test/task_environment.h"
#include "mojo/public/cpp/bindings/receiver_set.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "remoting/host/mojom/remote_url_opener.mojom.h"
#include "remoting/proto/remote_open_url.pb.h"
#include "remoting/protocol/fake_message_pipe.h"
#include "remoting/protocol/fake_message_pipe_wrapper.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"

namespace remoting {

namespace {

protocol::RemoteOpenUrl ParseMessage(const std::string& data) {}

inline auto QuitRunLoop(base::RunLoop& run_loop) {}

}  // namespace

class RemoteOpenUrlMessageHandlerTest : public testing::Test {};

RemoteOpenUrlMessageHandlerTest::RemoteOpenUrlMessageHandlerTest() {}

RemoteOpenUrlMessageHandlerTest::~RemoteOpenUrlMessageHandlerTest() {}

mojo::ReceiverId RemoteOpenUrlMessageHandlerTest::OpenUrl(
    mojo::Remote<mojom::RemoteUrlOpener>& remote,
    const GURL& url,
    mojom::RemoteUrlOpener::OpenUrlCallback callback) {}

bool RemoteOpenUrlMessageHandlerTest::HasPendingCallbacks() {}

void RemoteOpenUrlMessageHandlerTest::FlushReceivers() {}

TEST_F(RemoteOpenUrlMessageHandlerTest, OpenUrl) {}

TEST_F(RemoteOpenUrlMessageHandlerTest, OpenInvalidUrl_Failure) {}

TEST_F(RemoteOpenUrlMessageHandlerTest, OpenMultipleUrls) {}

TEST_F(RemoteOpenUrlMessageHandlerTest,
       DisconnectRemote_CallbackSilentlyDropped) {}

TEST_F(RemoteOpenUrlMessageHandlerTest,
       DisconnectMessagePipe_PendingCallbacksRunWithLocalFallback) {}

}  // namespace remoting