Index: cloud_print/gcp20/prototype/gcp20_device.cc |
diff --git a/cloud_print/gcp20/prototype/gcp20_device.cc b/cloud_print/gcp20/prototype/gcp20_device.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2d6b586279db4dcb005b23fb34d8cfca3e0f575e |
--- /dev/null |
+++ b/cloud_print/gcp20/prototype/gcp20_device.cc |
@@ -0,0 +1,28 @@ |
+// Copyright 2013 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 <stdio.h> |
+ |
+#include "base/command_line.h" |
+#include "base/logging.h" |
+#include "base/threading/platform_thread.h" |
+#include "cloud_print/gcp20/prototype/dns_sd.h" |
+ |
+int main(int argc, char* argv[]) { |
+ CommandLine::Init(argc, argv); |
+ |
+ logging::InitLogging(NULL, |
+ logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG, |
+ logging::LOCK_LOG_FILE, |
+ logging::APPEND_TO_OLD_LOG_FILE, |
+ logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS); |
+ |
+ DnsSd dns_sd_server; |
+ dns_sd_server.Start(); |
+ base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(2)); |
+ dns_sd_server.Shutdown(); |
+ |
+ return 0; |
+} |
+ |