Andreea Costinas | 4483361 | 2020-01-14 13:21:50 +0100 | [diff] [blame] | 1 | // Copyright 2020 The Chromium OS Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
Andreea Costinas | 41e0644 | 2020-03-09 09:41:51 +0100 | [diff] [blame] | 5 | #include <iostream> |
| 6 | #include <string> |
Andreea Costinas | 4483361 | 2020-01-14 13:21:50 +0100 | [diff] [blame] | 7 | |
Andreea Costinas | 41e0644 | 2020-03-09 09:41:51 +0100 | [diff] [blame] | 8 | #include <base/files/file_descriptor_watcher_posix.h> |
Qijiang Fan | 3401467 | 2020-07-20 16:05:38 +0900 | [diff] [blame] | 9 | #include <base/task/single_thread_task_executor.h> |
Andreea Costinas | 41e0644 | 2020-03-09 09:41:51 +0100 | [diff] [blame] | 10 | #include <base/run_loop.h> |
Andreea Costinas | 4483361 | 2020-01-14 13:21:50 +0100 | [diff] [blame] | 11 | |
Andreea Costinas | 41e0644 | 2020-03-09 09:41:51 +0100 | [diff] [blame] | 12 | #include "system-proxy/server_proxy.h" |
| 13 | |
| 14 | int main(int argc, char* argv[]) { |
Qijiang Fan | 3401467 | 2020-07-20 16:05:38 +0900 | [diff] [blame] | 15 | base::SingleThreadTaskExecutor task_executor(base::MessagePumpType::IO); |
| 16 | base::FileDescriptorWatcher watcher(task_executor.task_runner()); |
Andreea Costinas | 41e0644 | 2020-03-09 09:41:51 +0100 | [diff] [blame] | 17 | base::RunLoop run_loop; |
| 18 | |
| 19 | system_proxy::ServerProxy server(run_loop.QuitClosure()); |
| 20 | server.Init(); |
| 21 | run_loop.Run(); |
Andreea Costinas | 4483361 | 2020-01-14 13:21:50 +0100 | [diff] [blame] | 22 | return 0; |
| 23 | } |