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> |
| 9 | #include <base/message_loop/message_loop.h> |
| 10 | #include <base/run_loop.h> |
| 11 | #include <brillo/message_loops/base_message_loop.h> |
Andreea Costinas | 4483361 | 2020-01-14 13:21:50 +0100 | [diff] [blame] | 12 | |
Andreea Costinas | 41e0644 | 2020-03-09 09:41:51 +0100 | [diff] [blame] | 13 | #include "system-proxy/server_proxy.h" |
| 14 | |
| 15 | int main(int argc, char* argv[]) { |
| 16 | base::MessageLoopForIO message_loop; |
Qijiang Fan | 520e2b5 | 2020-06-18 18:40:36 +0900 | [diff] [blame] | 17 | base::FileDescriptorWatcher watcher(message_loop.task_runner()); |
Andreea Costinas | 41e0644 | 2020-03-09 09:41:51 +0100 | [diff] [blame] | 18 | base::RunLoop run_loop; |
| 19 | |
| 20 | system_proxy::ServerProxy server(run_loop.QuitClosure()); |
| 21 | server.Init(); |
| 22 | run_loop.Run(); |
Andreea Costinas | 4483361 | 2020-01-14 13:21:50 +0100 | [diff] [blame] | 23 | return 0; |
| 24 | } |