1 /* 2 * Copyright (c) 2011 The Chromium Authors. All rights reserved. 3 * Use of this source code is governed by a BSD-style license that can be 4 * found in the LICENSE file. 5 */ 6 7 /** 8 * This file will test that the IDL snippet matches the comment. 9 */ 10 11 /* typedef enum { A = 1, B = 2, C = 3, D = A + B, E = ~D } et1; */ 12 enum et1 { A=1, B=2, C=3, D=A+B, E=~D }; 13 14 /* typedef int32_t i; */ 15 typedef int32_t i; 16 17 /* typedef int32_t i2[3]; */ 18 typedef int32_t[3] i2; 19 20 /* typedef int32_t (*i_func)(void); */ 21 typedef int32_t i_func(); 22 23 /* typedef int32_t (*i_func_i)(int32_t i); */ 24 typedef int32_t i_func_i([in] int32_t i); 25 26 /* typedef et1 et4[4]; */ 27 typedef et1[4] et4; 28 29 /* 30 * typedef int8_t (*PPB_Audio_Callback)(const void* sample_buffer, 31 * uint32_t buffer_size_in_bytes, 32 * const void* user_data); 33 */ 34 typedef int8_t PPB_Audio_Callback([in] mem_t sample_buffer, 35 [in] uint32_t buffer_size_in_bytes, 36 [in] mem_t user_data); 37 38