Index: mojo/edk/system/ports/event.cc |
diff --git a/mojo/edk/system/ports/event.cc b/mojo/edk/system/ports/event.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5d79a3007d6055e5d4ee538f85a7796e46b06f93 |
--- /dev/null |
+++ b/mojo/edk/system/ports/event.cc |
@@ -0,0 +1,36 @@ |
+// 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. |
+ |
+#include "mojo/edk/system/ports/event.h" |
+ |
+namespace mojo { |
+namespace edk { |
+namespace ports { |
+ |
+namespace { |
+ |
+const size_t kEventMessageAlignment = 8; |
+ |
+} // namespace |
+ |
+static_assert(sizeof(PortDescriptor) % kEventMessageAlignment == 0, |
+ "Invalid PordDescriptor size"); |
+static_assert(sizeof(EventHeader) % kEventMessageAlignment == 0, |
+ "Invalid EventHeader size"); |
+static_assert(sizeof(UserEventData) % kEventMessageAlignment == 0, |
+ "Invalid UserEventData size"); |
+static_assert(sizeof(ObserveProxyEventData) % kEventMessageAlignment == 0, |
+ "Invalid ObserveProxyEventData size"); |
+static_assert(sizeof(ObserveProxyAckEventData) % kEventMessageAlignment == 0, |
+ "Invalid ObserveProxyAckEventData size"); |
+static_assert(sizeof(ObserveClosureEventData) % kEventMessageAlignment == 0, |
+ "Invalid ObserveClosureEventData size"); |
+ |
+PortDescriptor::PortDescriptor() {} |
+ |
+PortDescriptor::~PortDescriptor() {} |
+ |
+} // namespace ports |
+} // namespace edk |
+} // namespace mojo |