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

Side by Side Diff: chrome/service/service_process_unittest.cc

Issue 5977010: Move CancellationFlag and WaitableEvent to the synchronization subdirectory.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/service/service_process.h ('k') | chrome/test/automation/automation_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <vector> 5 #include <vector>
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/crypto/rsa_private_key.h" 9 #include "base/crypto/rsa_private_key.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "base/waitable_event.h" 11 #include "base/synchronization/waitable_event.h"
12 #include "chrome/service/service_process.h" 12 #include "chrome/service/service_process.h"
13 #include "remoting/host/host_key_pair.h" 13 #include "remoting/host/host_key_pair.h"
14 #include "testing/gmock/include/gmock/gmock.h" 14 #include "testing/gmock/include/gmock/gmock.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 TEST(ServiceProcessTest, DISABLED_Run) { 17 TEST(ServiceProcessTest, DISABLED_Run) {
18 MessageLoopForUI main_message_loop; 18 MessageLoopForUI main_message_loop;
19 ServiceProcess process; 19 ServiceProcess process;
20 CommandLine command_line(CommandLine::NO_PROGRAM); 20 CommandLine command_line(CommandLine::NO_PROGRAM);
21 EXPECT_TRUE(process.Initialize(&main_message_loop, command_line)); 21 EXPECT_TRUE(process.Initialize(&main_message_loop, command_line));
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 .WillOnce(QuitMessageLoop(&main_message_loop)); 58 .WillOnce(QuitMessageLoop(&main_message_loop));
59 59
60 // Then config the chromoting host and start it. 60 // Then config the chromoting host and start it.
61 process.remoting_host_manager()->SetCredentials("email", "token"); 61 process.remoting_host_manager()->SetCredentials("email", "token");
62 process.remoting_host_manager()->Enable(); 62 process.remoting_host_manager()->Enable();
63 MessageLoop::current()->Run(); 63 MessageLoop::current()->Run();
64 64
65 EXPECT_TRUE(process.Teardown()); 65 EXPECT_TRUE(process.Teardown());
66 } 66 }
67 #endif // defined(ENABLE_REMOTING) 67 #endif // defined(ENABLE_REMOTING)
OLDNEW
« no previous file with comments | « chrome/service/service_process.h ('k') | chrome/test/automation/automation_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698