OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <stdio.h> | 5 #include <stdio.h> |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/threading/platform_thread.h" | 9 #include "base/threading/platform_thread.h" |
10 #include "cloud_print/gcp20/prototype/dns_sd_server.h" | 10 #include "cloud_print/gcp20/prototype/dns_sd_server.h" |
11 | 11 |
12 int main(int argc, char* argv[]) { | 12 int main(int argc, char* argv[]) { |
13 CommandLine::Init(argc, argv); | 13 CommandLine::Init(argc, argv); |
14 | 14 |
15 logging::InitLogging(NULL, | 15 logging::LoggingSettings settings; |
16 logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG, | 16 settings.logging_dest = logging::LOG_TO_SYSTEM_DEBUG_LOG; |
17 logging::LOCK_LOG_FILE, | 17 logging::InitLogging(settings); |
18 logging::APPEND_TO_OLD_LOG_FILE, | |
19 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS); | |
20 | 18 |
21 DnsSdServer dns_sd_server; | 19 DnsSdServer dns_sd_server; |
22 dns_sd_server.Start(); | 20 dns_sd_server.Start(); |
23 base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(2)); | 21 base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(2)); |
24 dns_sd_server.Shutdown(); | 22 dns_sd_server.Shutdown(); |
25 | 23 |
26 return 0; | 24 return 0; |
27 } | 25 } |
28 | 26 |
OLD | NEW |