chromium/third_party/blink/renderer/modules/presentation/presentation_receiver_test.cc

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

#include "third_party/blink/renderer/modules/presentation/presentation_receiver.h"

#include <memory>

#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise_resolver.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_testing.h"
#include "third_party/blink/renderer/core/dom/events/native_event_listener.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/testing/dummy_page_holder.h"
#include "third_party/blink/renderer/modules/presentation/presentation_connection.h"
#include "third_party/blink/renderer/modules/presentation/presentation_connection_list.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/testing/url_test_helpers.h"
#include "v8/include/v8.h"

namespace blink {

class MockEventListenerForPresentationReceiver : public NativeEventListener {};

class PresentationReceiverTest : public testing::Test {};

void PresentationReceiverTest::AddConnectionavailableEventListener(
    EventListener* event_handler,
    const PresentationReceiver* receiver) {}

void PresentationReceiverTest::VerifyConnectionListPropertyState(
    ConnectionListProperty::State expected_state,
    const PresentationReceiver* receiver) {}

void PresentationReceiverTest::VerifyConnectionListSize(
    size_t expected_size,
    const PresentationReceiver* receiver) {}

StrictMock;

TEST_F(PresentationReceiverTest, NoConnectionUnresolvedConnectionList) {}

TEST_F(PresentationReceiverTest, OneConnectionResolvedConnectionListNoEvent) {}

TEST_F(PresentationReceiverTest, TwoConnectionsFireOnconnectionavailableEvent) {}

TEST_F(PresentationReceiverTest, TwoConnectionsNoEvent) {}

}  // namespace blink