Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Unified Diff: cloud_print/gcp20/prototype/gcp20_device.cc

Issue 16389002: GCP2.0 Device: mDNS basics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cloud_print/gcp20/prototype/dns_sd_server.cc ('k') | cloud_print/gcp20/prototype/gcp20_device.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..f210063a7baab93a729d4ef4317f771c5843ff7c
--- /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_server.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);
+
+ DnsSdServer dns_sd_server;
+ dns_sd_server.Start();
+ base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(2));
+ dns_sd_server.Shutdown();
+
+ return 0;
+}
+
« no previous file with comments | « cloud_print/gcp20/prototype/dns_sd_server.cc ('k') | cloud_print/gcp20/prototype/gcp20_device.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698