blob: 0bfb2d8fd4ec663fcb3dbee53d73934395ac8150 [file] [log] [blame]
Andreea Costinas44833612020-01-14 13:21:50 +01001// 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 Costinas41e06442020-03-09 09:41:51 +01005#include <iostream>
6#include <string>
Andreea Costinas44833612020-01-14 13:21:50 +01007
Andreea Costinas41e06442020-03-09 09:41:51 +01008#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 Costinas44833612020-01-14 13:21:50 +010012
Andreea Costinas41e06442020-03-09 09:41:51 +010013#include "system-proxy/server_proxy.h"
14
15int main(int argc, char* argv[]) {
16 base::MessageLoopForIO message_loop;
Qijiang Fan520e2b52020-06-18 18:40:36 +090017 base::FileDescriptorWatcher watcher(message_loop.task_runner());
Andreea Costinas41e06442020-03-09 09:41:51 +010018 base::RunLoop run_loop;
19
20 system_proxy::ServerProxy server(run_loop.QuitClosure());
21 server.Init();
22 run_loop.Run();
Andreea Costinas44833612020-01-14 13:21:50 +010023 return 0;
24}