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.
4
5#include "content/renderer/media/mock_web_rtc_peer_connection_handler_client.h"
6#include "content/renderer/media/webrtc/mock_peer_connection_dependency_factory.h"
7#include "testing/gtest/include/gtest/gtest.h"
8#include "third_party/WebKit/public/platform/WebRTCPeerConnectionHandler.h"
9
10namespace content {
11
12class PeerConnectionDependencyFactoryTest : public ::testing::Test {
13 public:
14  virtual void SetUp() {
15    dependency_factory_.reset(new MockPeerConnectionDependencyFactory());
16  }
17
18 protected:
19  scoped_ptr<MockPeerConnectionDependencyFactory> dependency_factory_;
20};
21
22TEST_F(PeerConnectionDependencyFactoryTest, CreateRTCPeerConnectionHandler) {
23  MockWebRTCPeerConnectionHandlerClient client_jsep;
24  scoped_ptr<blink::WebRTCPeerConnectionHandler> pc_handler(
25      dependency_factory_->CreateRTCPeerConnectionHandler(&client_jsep));
26  EXPECT_TRUE(pc_handler.get() != NULL);
27}
28
29}  // namespace content
30