blob: ef6ba60a651c19a1ca1d4fb200a8702955326324 [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>
Qijiang Fan34014672020-07-20 16:05:38 +09009#include <base/task/single_thread_task_executor.h>
Andreea Costinas41e06442020-03-09 09:41:51 +010010#include <base/run_loop.h>
Andreea Costinas44833612020-01-14 13:21:50 +010011
Andreea Costinas41e06442020-03-09 09:41:51 +010012#include "system-proxy/server_proxy.h"
13
14int main(int argc, char* argv[]) {
Qijiang Fan34014672020-07-20 16:05:38 +090015 base::SingleThreadTaskExecutor task_executor(base::MessagePumpType::IO);
16 base::FileDescriptorWatcher watcher(task_executor.task_runner());
Andreea Costinas41e06442020-03-09 09:41:51 +010017 base::RunLoop run_loop;
18
19 system_proxy::ServerProxy server(run_loop.QuitClosure());
20 server.Init();
21 run_loop.Run();
Andreea Costinas44833612020-01-14 13:21:50 +010022 return 0;
23}