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

Unified Diff: remoting/host/chromoting_host_context_unittest.cc

Issue 639233002: Remote assistance on Chrome OS Part IV - It2MeHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
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();
}

Powered by Google App Engine
This is Rietveld 408576698