#include "content/browser/presentation/presentation_service_impl.h"
#include <stddef.h>
#include <stdint.h>
#include <iterator>
#include <memory>
#include <optional>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/run_loop.h"
#include "base/strings/stringprintf.h"
#include "content/browser/presentation/presentation_test_utils.h"
#include "content/public/browser/presentation_request.h"
#include "content/public/browser/presentation_service_delegate.h"
#include "content/public/test/mock_navigation_handle.h"
#include "content/test/test_render_frame_host.h"
#include "content/test/test_render_view_host.h"
#include "content/test/test_web_contents.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "testing/gmock/include/gmock/gmock.h"
PresentationConnectionResult;
PresentationInfo;
namespace content {
namespace {
const char kPresentationId[] = …;
const char kPresentationUrl1[] = …;
const char kPresentationUrl2[] = …;
const char kPresentationUrl3[] = …;
}
class PresentationServiceImplTest : public RenderViewHostImplTestHarness { … };
TEST_F(PresentationServiceImplTest, ListenForScreenAvailability) { … }
TEST_F(PresentationServiceImplTest, ScreenAvailabilityNotSupported) { … }
TEST_F(PresentationServiceImplTest, OnDelegateDestroyed) { … }
TEST_F(PresentationServiceImplTest, DidNavigateThisFrame) { … }
TEST_F(PresentationServiceImplTest, DidNavigateOtherFrame) { … }
TEST_F(PresentationServiceImplTest, DelegateFails) { … }
TEST_F(PresentationServiceImplTest, SetDefaultPresentationUrls) { … }
TEST_F(PresentationServiceImplTest,
SetDefaultPresentationUrlsNoopsOnNonMainFrame) { … }
TEST_F(PresentationServiceImplTest, ListenForConnectionStateChange) { … }
TEST_F(PresentationServiceImplTest, ListenForConnectionClose) { … }
TEST_F(PresentationServiceImplTest, SetSameDefaultPresentationUrls) { … }
TEST_F(PresentationServiceImplTest, StartPresentationSuccess) { … }
TEST_F(PresentationServiceImplTest, StartPresentationError) { … }
TEST_F(PresentationServiceImplTest, StartPresentationInProgress) { … }
TEST_F(PresentationServiceImplTest, ReconnectPresentationSuccess) { … }
TEST_F(PresentationServiceImplTest, ReconnectPresentationError) { … }
TEST_F(PresentationServiceImplTest, MaxPendingReconnectPresentationRequests) { … }
TEST_F(PresentationServiceImplTest, CloseConnection) { … }
TEST_F(PresentationServiceImplTest, Terminate) { … }
TEST_F(PresentationServiceImplTest, ReceiverPresentationServiceDelegate) { … }
TEST_F(PresentationServiceImplTest, ReceiverDelegateOnSubFrame) { … }
}