Make USB permissions work in the new permission message system
[chromium-blink-merge.git] / content / renderer / media / webrtc / peer_connection_dependency_factory_unittest.cc
blob4009d978371f2c6363e4533f97bbaf1fd3c72d80
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"
11 namespace content {
13 class PeerConnectionDependencyFactoryTest : public ::testing::Test {
14 public:
15 void SetUp() override {
16 dependency_factory_.reset(new MockPeerConnectionDependencyFactory());
19 protected:
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