Index: remoting/host/chromoting_host_context_unittest.cc |
diff --git a/remoting/host/chromoting_host_context_unittest.cc b/remoting/host/chromoting_host_context_unittest.cc |
index a3a48f13f9525388f02a2edab8ac9d19bfded39b..9fb7407ebeb6f71202ab3918e9f86e42695f4909 100644 |
--- a/remoting/host/chromoting_host_context_unittest.cc |
+++ b/remoting/host/chromoting_host_context_unittest.cc |
@@ -5,7 +5,7 @@ |
#include "base/message_loop/message_loop.h" |
#include "base/run_loop.h" |
#include "remoting/base/auto_thread_task_runner.h" |
-#include "remoting/host/chromoting_host_context.h" |
+#include "remoting/host/chromoting_host_context_impl.h" |
#include "testing/gtest/include/gtest/gtest.h" |
namespace remoting { |
@@ -16,12 +16,12 @@ TEST(ChromotingHostContextTest, StartAndStop) { |
base::MessageLoopForUI message_loop; |
base::RunLoop run_loop; |
- scoped_ptr<ChromotingHostContext> context = |
- ChromotingHostContext::Create(new AutoThreadTaskRunner( |
- message_loop.message_loop_proxy(), run_loop.QuitClosure())); |
+ scoped_refptr<ChromotingHostContext> context = |
+ new ChromotingHostContextImpl(new AutoThreadTaskRunner( |
+ message_loop.message_loop_proxy(), run_loop.QuitClosure())); |
- EXPECT_TRUE(context); |
- if (!context) |
+ EXPECT_TRUE(context.get()); |
+ if (!context.get()) |
return; |
EXPECT_TRUE(context->audio_task_runner().get()); |
EXPECT_TRUE(context->video_capture_task_runner().get()); |
@@ -31,7 +31,7 @@ TEST(ChromotingHostContextTest, StartAndStop) { |
EXPECT_TRUE(context->network_task_runner().get()); |
EXPECT_TRUE(context->ui_task_runner().get()); |
- context.reset(); |
+ context = nullptr; |
run_loop.Run(); |
} |