OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/service/service_process.h" | 5 #include "chrome/service/service_process.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/crypto/rsa_private_key.h" | |
12 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
13 #include "base/synchronization/waitable_event.h" | 12 #include "base/synchronization/waitable_event.h" |
14 #include "chrome/common/service_process_util.h" | 13 #include "chrome/common/service_process_util.h" |
15 #include "remoting/host/host_key_pair.h" | 14 #include "remoting/host/host_key_pair.h" |
16 #include "testing/gmock/include/gmock/gmock.h" | 15 #include "testing/gmock/include/gmock/gmock.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
18 | 17 |
19 TEST(ServiceProcessTest, DISABLED_Run) { | 18 TEST(ServiceProcessTest, DISABLED_Run) { |
20 MessageLoopForUI main_message_loop; | 19 MessageLoopForUI main_message_loop; |
21 ServiceProcess process; | 20 ServiceProcess process; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 .WillOnce(QuitMessageLoop(&main_message_loop)); | 62 .WillOnce(QuitMessageLoop(&main_message_loop)); |
64 | 63 |
65 // Then config the chromoting host and start it. | 64 // Then config the chromoting host and start it. |
66 process.remoting_host_manager()->SetCredentials("email", "token"); | 65 process.remoting_host_manager()->SetCredentials("email", "token"); |
67 process.remoting_host_manager()->Enable(); | 66 process.remoting_host_manager()->Enable(); |
68 MessageLoop::current()->Run(); | 67 MessageLoop::current()->Run(); |
69 | 68 |
70 EXPECT_TRUE(process.Teardown()); | 69 EXPECT_TRUE(process.Teardown()); |
71 } | 70 } |
72 #endif // defined(ENABLE_REMOTING) | 71 #endif // defined(ENABLE_REMOTING) |
OLD | NEW |