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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_HOST_HOST_ATTRIBUTES_EMPTY_H_
6 #define REMOTING_HOST_HOST_ATTRIBUTES_EMPTY_H_
7
8 #include "remoting/host/host_attributes.h"
9
10 namespace remoting {
11
12 namespace {
13
14 inline constexpr bool IsDebug() {
15 #if defined(NDEBUG)
16 return false;
17 #else
18 return true;
19 #endif
20 }
21
22 } // namespace
23
24 static StaticAttribute kStaticAttributes[] = {
25 StaticAttribute::Create( { "Debug-Build", &IsDebug } ),
26 };
27
28 static constexpr DynamicAttribute kDynamicAttributes[] = {};
29
30 } // namespace remoting
31
32 #endif // REMOTING_HOST_HOST_ATTRIBUTES_EMPTY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698