diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/presentation/presentation_receiver_test.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/modules/presentation/presentation_receiver_test.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chromium/third_party/blink/renderer/modules/presentation/presentation_receiver_test.cc b/chromium/third_party/blink/renderer/modules/presentation/presentation_receiver_test.cc index cc6e8a48bbc..7a4f1653784 100644 --- a/chromium/third_party/blink/renderer/modules/presentation/presentation_receiver_test.cc +++ b/chromium/third_party/blink/renderer/modules/presentation/presentation_receiver_test.cc @@ -29,11 +29,12 @@ class MockEventListenerForPresentationReceiver : public NativeEventListener { class PresentationReceiverTest : public testing::Test { public: + using ConnectionListProperty = PresentationReceiver::ConnectionListProperty; PresentationReceiverTest() : connection_info_(KURL("https://example.com"), "id") {} void AddConnectionavailableEventListener(EventListener*, const PresentationReceiver*); - void VerifyConnectionListPropertyState(ScriptPromisePropertyBase::State, + void VerifyConnectionListPropertyState(ConnectionListProperty::State, const PresentationReceiver*); void VerifyConnectionListSize(size_t expected_size, const PresentationReceiver*); @@ -65,7 +66,7 @@ void PresentationReceiverTest::AddConnectionavailableEventListener( } void PresentationReceiverTest::VerifyConnectionListPropertyState( - ScriptPromisePropertyBase::State expected_state, + ConnectionListProperty::State expected_state, const PresentationReceiver* receiver) { EXPECT_EQ(expected_state, receiver->connection_list_property_->GetState()); } @@ -90,8 +91,7 @@ TEST_F(PresentationReceiverTest, NoConnectionUnresolvedConnectionList) { receiver->connectionList(scope.GetScriptState()); - VerifyConnectionListPropertyState(ScriptPromisePropertyBase::kPending, - receiver); + VerifyConnectionListPropertyState(ConnectionListProperty::kPending, receiver); VerifyConnectionListSize(0, receiver); } @@ -112,7 +112,7 @@ TEST_F(PresentationReceiverTest, OneConnectionResolvedConnectionListNoEvent) { connection_info_.Clone(), std::move(controller_connection_), std::move(receiver_connection_receiver_)); - VerifyConnectionListPropertyState(ScriptPromisePropertyBase::kResolved, + VerifyConnectionListPropertyState(ConnectionListProperty::kResolved, receiver); VerifyConnectionListSize(1, receiver); } @@ -187,7 +187,7 @@ TEST_F(PresentationReceiverTest, TwoConnectionsNoEvent) { std::move(receiver_connection_receiver_2)); receiver->connectionList(scope.GetScriptState()); - VerifyConnectionListPropertyState(ScriptPromisePropertyBase::kResolved, + VerifyConnectionListPropertyState(ConnectionListProperty::kResolved, receiver); VerifyConnectionListSize(2, receiver); } |