OLD | NEW |
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 Loading... |
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) |
OLD | NEW |