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

Unified Diff: chrome/service/service_process_unittest.cc

Issue 3384001: The LSID for Cloud Print can now be supplied on the command line even if Clou... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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
« 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
===================================================================
--- chrome/service/service_process_unittest.cc (revision 59251)
+++ chrome/service/service_process_unittest.cc (working copy)
@@ -5,6 +5,7 @@
#include <vector>
#include "base/base64.h"
+#include "base/command_line.h"
#include "base/crypto/rsa_private_key.h"
#include "base/message_loop.h"
#include "base/waitable_event.h"
@@ -16,7 +17,8 @@
TEST(ServiceProcessTest, DISABLED_Run) {
MessageLoopForUI main_message_loop;
ServiceProcess process;
- EXPECT_TRUE(process.Initialize(&main_message_loop));
+ CommandLine command_line(CommandLine::ARGUMENTS_ONLY);
+ EXPECT_TRUE(process.Initialize(&main_message_loop, command_line));
EXPECT_TRUE(process.Teardown());
}
@@ -25,7 +27,8 @@
TEST(ServiceProcessTest, DISABLED_RunChromoting) {
MessageLoopForUI main_message_loop;
ServiceProcess process;
- EXPECT_TRUE(process.Initialize(&main_message_loop));
+ CommandLine command_line(CommandLine::ARGUMENTS_ONLY);
+ EXPECT_TRUE(process.Initialize(&main_message_loop, command_line));
// Then config the chromoting host and start it.
remoting::HostKeyPair key;
@@ -49,7 +52,8 @@
TEST(ServiceProcessTest, DISABLED_RunChromotingUntilShutdown) {
MessageLoopForUI main_message_loop;
MockServiceProcess process;
- EXPECT_TRUE(process.Initialize(&main_message_loop));
+ CommandLine command_line(CommandLine::ARGUMENTS_ONLY);
+ EXPECT_TRUE(process.Initialize(&main_message_loop, command_line));
// Expect chromoting shutdown be called because the login token is invalid.
EXPECT_CALL(process, OnChromotingHostShutdown())
« 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