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

Unified Diff: chrome/service/service_process_unittest.cc

Issue 5955001: Remove chromoting host registration from service process. More IPCs to control (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merges Created 10 years 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
« no previous file with comments | « chrome/service/service_process.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/service_process_unittest.cc
diff --git a/chrome/service/service_process_unittest.cc b/chrome/service/service_process_unittest.cc
index 1de149222028f6802155858eb884d08f36f2670e..7b8fff17b438d0fc22a6f95f50b6f23326fde2eb 100644
--- a/chrome/service/service_process_unittest.cc
+++ b/chrome/service/service_process_unittest.cc
@@ -31,11 +31,9 @@ TEST(ServiceProcessTest, DISABLED_RunChromoting) {
EXPECT_TRUE(process.Initialize(&main_message_loop, command_line));
// Then config the chromoting host and start it.
- remoting::HostKeyPair key;
- key.Generate();
- process.SaveChromotingConfig("hello", "world", "it's a", "good day", &key);
- EXPECT_TRUE(process.StartChromotingHost());
- EXPECT_TRUE(process.ShutdownChromotingHost());
+ process.remoting_host_manager()->SetCredentials("email", "token");
+ process.remoting_host_manager()->Enable();
+ process.remoting_host_manager()->Disable();
EXPECT_TRUE(process.Teardown());
}
@@ -60,10 +58,8 @@ TEST(ServiceProcessTest, DISABLED_RunChromotingUntilShutdown) {
.WillOnce(QuitMessageLoop(&main_message_loop));
// Then config the chromoting host and start it.
- remoting::HostKeyPair key;
- key.Generate();
- process.SaveChromotingConfig("hello", "world", "it's a", "good day", &key);
- EXPECT_TRUE(process.StartChromotingHost());
+ process.remoting_host_manager()->SetCredentials("email", "token");
+ process.remoting_host_manager()->Enable();
MessageLoop::current()->Run();
EXPECT_TRUE(process.Teardown());
« no previous file with comments | « chrome/service/service_process.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698