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

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

Issue 1967773004: Fix include path for moved thread_task_runner_handle.h header in chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
Patch Set: merge up to r393013 Created 4 years, 7 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
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/run_loop.h" 7 #include "base/run_loop.h"
8 #include "base/thread_task_runner_handle.h" 8 #include "base/threading/thread_task_runner_handle.h"
9 #include "chrome/renderer/chrome_content_renderer_client.h" 9 #include "chrome/renderer/chrome_content_renderer_client.h"
10 #include "chrome/test/base/chrome_render_view_test.h" 10 #include "chrome/test/base/chrome_render_view_test.h"
11 11
12 namespace chrome { 12 namespace chrome {
13 13
14 typedef ChromeRenderViewTest CastSessionBrowserTest; 14 typedef ChromeRenderViewTest CastSessionBrowserTest;
15 15
16 // Tests that CastSession is created and destroyed properly inside 16 // Tests that CastSession is created and destroyed properly inside
17 // chrome renderer. 17 // chrome renderer.
18 TEST_F(CastSessionBrowserTest, CreateAndDestroy) { 18 TEST_F(CastSessionBrowserTest, CreateAndDestroy) {
19 chrome_render_thread_->set_io_message_loop_proxy( 19 chrome_render_thread_->set_io_message_loop_proxy(
20 base::ThreadTaskRunnerHandle::Get()); 20 base::ThreadTaskRunnerHandle::Get());
21 ChromeContentRendererClient* client = 21 ChromeContentRendererClient* client =
22 static_cast<ChromeContentRendererClient*>(content_renderer_client_.get()); 22 static_cast<ChromeContentRendererClient*>(content_renderer_client_.get());
23 client->RenderThreadStarted(); 23 client->RenderThreadStarted();
24 24
25 scoped_refptr<CastSession> session(new CastSession()); 25 scoped_refptr<CastSession> session(new CastSession());
26 26
27 // Causes CastSession to destruct. 27 // Causes CastSession to destruct.
28 session = NULL; 28 session = NULL;
29 base::RunLoop().RunUntilIdle(); 29 base::RunLoop().RunUntilIdle();
30 } 30 }
31 31
32 } // namespace chrome 32 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/renderer/media/cast_rtp_stream.cc ('k') | chrome/renderer/media/cast_session_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698