1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "base/message_loop/message_loop.h"
6 #include "content/renderer/media/mock_web_rtc_peer_connection_handler_client.h"
7 #include "content/renderer/media/webrtc/mock_peer_connection_dependency_factory.h"
8 #include "testing/gtest/include/gtest/gtest.h"
9 #include "third_party/WebKit/public/platform/WebRTCPeerConnectionHandler.h"
13 class PeerConnectionDependencyFactoryTest
: public ::testing::Test
{
15 void SetUp() override
{
16 dependency_factory_
.reset(new MockPeerConnectionDependencyFactory());
20 base::MessageLoop message_loop_
;
21 scoped_ptr
<MockPeerConnectionDependencyFactory
> dependency_factory_
;
24 TEST_F(PeerConnectionDependencyFactoryTest
, CreateRTCPeerConnectionHandler
) {
25 MockWebRTCPeerConnectionHandlerClient client_jsep
;
26 scoped_ptr
<blink::WebRTCPeerConnectionHandler
> pc_handler(
27 dependency_factory_
->CreateRTCPeerConnectionHandler(&client_jsep
));
28 EXPECT_TRUE(pc_handler
.get() != NULL
);
31 } // namespace content