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

Side by Side Diff: ppapi/tests/arch_dependent_sizes_32.h

Issue 5674004: Add compile assertions to enforce the sizes of all structs and enums in the C... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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 | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 /* Copyright (c) 2010 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 * This file has compile assertions for the sizes of types that are dependent
6 * on the architecture for which they are compiled (i.e., 32-bit vs 64-bit).
7 */
8
9 #ifndef PPAPI_TESTS_ARCH_DEPENDENT_SIZES_32_H_
10 #define PPAPI_TESTS_ARCH_DEPENDENT_SIZES_32_H_
11
12 #include "ppapi/tests/test_struct_sizes.c"
13
14 PP_COMPILE_ASSERT_SIZE_IN_BYTES(GLintptr, 4);
15 PP_COMPILE_ASSERT_SIZE_IN_BYTES(GLsizeiptr, 4);
16 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_ClassDestructor, 4);
17 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_ClassFunction, 4);
18 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_CompletionCallback_Func, 4);
19 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_URLLoaderTrusted_StatusCallback, 4);
20 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_VideoConfig_Dev, 4);
21 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_VideoDecodeEventHandler_Func_Dev, 4);
22 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_VideoDecodeInputCallback_Func_Dev, 4);
23 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_VideoDecodeOutputCallback_Func_Dev, 4);
24 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_ClassProperty, 20);
25 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_CompletionCallback, 8);
26 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_FileChooserOptions_Dev, 8);
27 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_VideoDecoderConfig_Dev, 20);
28 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_VideoFrameBuffer_Dev, 112);
29 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_VideoUncompressedDataBuffer_Dev, 136);
30
31 #endif /* PPAPI_TESTS_ARCH_DEPENDENT_SIZES_32_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698