Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: chrome/renderer/media/cast_session_browsertest.cc

Issue 138753004: Cast: IPC glue between cast library transport and encoders. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor cleanup Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/renderer/media/cast_session.cc ('k') | chrome/renderer/media/cast_session_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/renderer/media/cast_session.h" 5 #include "chrome/renderer/media/cast_session.h"
6 6
7 #include "base/message_loop/message_loop_proxy.h" 7 #include "base/message_loop/message_loop_proxy.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "chrome/test/base/chrome_render_view_test.h" 9 #include "chrome/test/base/chrome_render_view_test.h"
10 10
11 namespace chrome { 11 namespace chrome {
12 12
13 typedef ChromeRenderViewTest CastSessionBrowserTest; 13 typedef ChromeRenderViewTest CastSessionBrowserTest;
14 14
15 // Tests that CastSession is created and destroyed properly inside 15 // Tests that CastSession is created and destroyed properly inside
16 // chrome renderer. 16 // chrome renderer.
17 TEST_F(CastSessionBrowserTest, CreateAndDestroy) { 17 TEST_F(CastSessionBrowserTest, CreateAndDestroy) {
18 chrome_content_renderer_client_.RenderThreadStarted();
19 chrome_render_thread_->set_io_message_loop_proxy( 18 chrome_render_thread_->set_io_message_loop_proxy(
20 base::MessageLoopProxy::current()); 19 base::MessageLoopProxy::current());
20 chrome_content_renderer_client_.RenderThreadStarted();
21 21
22 scoped_refptr<CastSession> session(new CastSession()); 22 scoped_refptr<CastSession> session(new CastSession());
23 23
24 // Causes CastSession to destruct. 24 // Causes CastSession to destruct.
25 session = NULL; 25 session = NULL;
26 base::RunLoop().RunUntilIdle(); 26 base::RunLoop().RunUntilIdle();
27 } 27 }
28 28
29 } // namespace chrome 29 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/renderer/media/cast_session.cc ('k') | chrome/renderer/media/cast_session_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698