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

Unified Diff: ppapi/tests/test_struct_sizes_c.c

Issue 5340003: Make a new test to enforce the sizes of all structs and enums in the C API.... (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/tests/test_cpp_includes.cc ('k') | ppapi/tests/test_struct_sizes_cpp.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_struct_sizes_c.c
===================================================================
--- ppapi/tests/test_struct_sizes_c.c (revision 0)
+++ ppapi/tests/test_struct_sizes_c.c (revision 0)
@@ -0,0 +1,17 @@
+/* Copyright (c) 2010 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.
+ *
+ * This test ensures (at compile time) that each type has the expected size in
+ * C. The purpose is to ensure that the ABI of PPAPI is known, consistent, and
+ * stable. If the size of one of these types changes, then it is necessary to
+ * change the version of any interfaces that rely on the changed type(s).
+ *
+ * See all_c_sizes.h for the actual structs and their sizes. It is separated so
+ * we can share the header between C and C++ to ensure the sizes are consistent
+ * across both languages. See test_struct_sizes_cpp.cc for the C++ version of
+ * this test.
+ */
+
+#include "ppapi/tests/all_c_sizes.h"
+
Property changes on: ppapi/tests/test_struct_sizes_c.c
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « ppapi/tests/test_cpp_includes.cc ('k') | ppapi/tests/test_struct_sizes_cpp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698