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

Side by Side Diff: mojo/edk/system/ports/event.cc

Issue 1676803002: [mojo-edk] Minor clean-up in the ports layer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 unified diff | Download patch
« no previous file with comments | « mojo/edk/system/ports/event.h ('k') | mojo/edk/system/ports/node.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "mojo/edk/system/ports/event.h"
6
7 namespace mojo {
8 namespace edk {
9 namespace ports {
10
11 namespace {
12
13 const size_t kEventMessageAlignment = 8;
14
15 } // namespace
16
17 static_assert(sizeof(PortDescriptor) % kEventMessageAlignment == 0,
18 "Invalid PordDescriptor size");
19 static_assert(sizeof(EventHeader) % kEventMessageAlignment == 0,
20 "Invalid EventHeader size");
21 static_assert(sizeof(UserEventData) % kEventMessageAlignment == 0,
22 "Invalid UserEventData size");
23 static_assert(sizeof(ObserveProxyEventData) % kEventMessageAlignment == 0,
24 "Invalid ObserveProxyEventData size");
25 static_assert(sizeof(ObserveProxyAckEventData) % kEventMessageAlignment == 0,
26 "Invalid ObserveProxyAckEventData size");
27 static_assert(sizeof(ObserveClosureEventData) % kEventMessageAlignment == 0,
28 "Invalid ObserveClosureEventData size");
29
30 PortDescriptor::PortDescriptor() {}
31
32 PortDescriptor::~PortDescriptor() {}
33
34 } // namespace ports
35 } // namespace edk
36 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/edk/system/ports/event.h ('k') | mojo/edk/system/ports/node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698