blob: e07634e4439c5720f60aa481716030d1be49395e [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <lib/async-loop/cpp/loop.h>
#include "garnet/bin/http/http_service_delegate.h"
#include "lib/fxl/command_line.h"
#include "lib/fxl/log_settings_command_line.h"
int main(int argc, const char** argv) {
auto command_line = fxl::CommandLineFromArgcArgv(argc, argv);
if (!fxl::SetLogSettingsFromCommandLine(command_line))
return 1;
async::Loop loop(&kAsyncLoopConfigAttachToThread);
http::HttpServiceDelegate delegate2(loop.dispatcher());
loop.Run();
return 0;
}