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

Unified Diff: remoting/host/host_attributes_empty.h

Issue 2464293002: [Chromoting] GetHostAttributes with tests (Closed)
Patch Set: Resolve review comments Created 4 years, 1 month 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
Index: remoting/host/host_attributes_empty.h
diff --git a/remoting/host/host_attributes_empty.h b/remoting/host/host_attributes_empty.h
new file mode 100644
index 0000000000000000000000000000000000000000..5b2304a442e01b48a6c9f6f486c6f2f34046c533
--- /dev/null
+++ b/remoting/host/host_attributes_empty.h
@@ -0,0 +1,32 @@
+// Copyright 2016 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.
+
+#ifndef REMOTING_HOST_HOST_ATTRIBUTES_EMPTY_H_
+#define REMOTING_HOST_HOST_ATTRIBUTES_EMPTY_H_
+
+#include "remoting/host/host_attributes.h"
+
+namespace remoting {
+
+namespace {
+
+inline constexpr bool IsDebug() {
+#if defined(NDEBUG)
+ return false;
+#else
+ return true;
+#endif
+}
+
+} // namespace
+
+static StaticAttribute kStaticAttributes[] = {
+ StaticAttribute::Create( { "Debug-Build", &IsDebug } ),
+};
+
+static constexpr DynamicAttribute kDynamicAttributes[] = {};
+
+} // namespace remoting
+
+#endif // REMOTING_HOST_HOST_ATTRIBUTES_EMPTY_H_

Powered by Google App Engine
This is Rietveld 408576698