OLD | NEW |
| (Empty) |
1 // Copyright (c) 2012 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_media_stream_dependency_factory.h" | |
6 #include "content/renderer/media/mock_web_rtc_peer_connection_handler_client.h" | |
7 #include "testing/gtest/include/gtest/gtest.h" | |
8 #include "third_party/WebKit/public/platform/WebRTCPeerConnectionHandler.h" | |
9 | |
10 namespace content { | |
11 | |
12 class MediaStreamDependencyFactoryTest : public ::testing::Test { | |
13 public: | |
14 virtual void SetUp() { | |
15 dependency_factory_.reset(new MockMediaStreamDependencyFactory()); | |
16 } | |
17 | |
18 protected: | |
19 scoped_ptr<MockMediaStreamDependencyFactory> dependency_factory_; | |
20 }; | |
21 | |
22 TEST_F(MediaStreamDependencyFactoryTest, 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 | |
OLD | NEW |