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

Unified Diff: chrome/service/service_process_unittest.cc

Issue 6660001: Getting service process on Mac to handle having things moved/changed underneath it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: polishing the chrome Created 9 years, 9 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
diff --git a/chrome/service/service_process_unittest.cc b/chrome/service/service_process_unittest.cc
index cfc6fc060d111a9928bc92a3743da9bca04b3875..690e7ae62d5ec8d2326d1fef76e63f5b3886edfa 100644
--- a/chrome/service/service_process_unittest.cc
+++ b/chrome/service/service_process_unittest.cc
@@ -1,7 +1,9 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "chrome/service/service_process.h"
+
#include <vector>
#include "base/base64.h"
@@ -9,7 +11,7 @@
#include "base/crypto/rsa_private_key.h"
#include "base/message_loop.h"
#include "base/synchronization/waitable_event.h"
-#include "chrome/service/service_process.h"
+#include "chrome/common/service_process_util.h"
#include "remoting/host/host_key_pair.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -17,8 +19,9 @@
TEST(ServiceProcessTest, DISABLED_Run) {
MessageLoopForUI main_message_loop;
ServiceProcess process;
+ ServiceProcessState state;
CommandLine command_line(CommandLine::NO_PROGRAM);
- EXPECT_TRUE(process.Initialize(&main_message_loop, command_line));
+ EXPECT_TRUE(process.Initialize(&main_message_loop, command_line, &state));
EXPECT_TRUE(process.Teardown());
}
@@ -27,8 +30,9 @@ TEST(ServiceProcessTest, DISABLED_Run) {
TEST(ServiceProcessTest, DISABLED_RunChromoting) {
MessageLoopForUI main_message_loop;
ServiceProcess process;
+ ServiceProcessState state;
CommandLine command_line(CommandLine::NO_PROGRAM);
- EXPECT_TRUE(process.Initialize(&main_message_loop, command_line));
+ EXPECT_TRUE(process.Initialize(&main_message_loop, command_line, &state));
// Then config the chromoting host and start it.
process.remoting_host_manager()->SetCredentials("email", "token");
@@ -50,8 +54,9 @@ ACTION_P(QuitMessageLoop, message_loop) {
TEST(ServiceProcessTest, DISABLED_RunChromotingUntilShutdown) {
MessageLoopForUI main_message_loop;
MockServiceProcess process;
+ ServiceProcessState state;
CommandLine command_line(CommandLine::NO_PROGRAM);
- EXPECT_TRUE(process.Initialize(&main_message_loop, command_line));
+ EXPECT_TRUE(process.Initialize(&main_message_loop, command_line, &state));
// 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