Home | History | Annotate | Download | only in test_parser
      1 /* Copyright (c) 2011 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 
      6 /* Tests for interface */
      7 
      8 /* OK Interface(Interface1) */
      9 interface Interface1 {
     10   /* OK Member(OneParam) */
     11   PP_Bool OneParam(
     12       /* OK Param(resource) */
     13       [in] PP_Resource resource);
     14 
     15   /* OK Member(TwoParam) */
     16   PP_Resource TwoParam(
     17       /* OK Param(instance) */
     18       [in] PP_Instance instance,
     19       /* OK Param(size) */
     20       [in] PP_Size size);
     21 
     22   /* OK Member(ThreeParam) */
     23   PP_Bool ThreeParam(
     24       /* OK Param(graphics_2d) */
     25       [in] PP_Resource graphics_2d,
     26       /* OK Param(size) */
     27       [out] PP_Size size,
     28       /* OK Param(is_always_opaque) */
     29       [out] PP_Bool is_always_opaque);
     30 
     31   /* OK Member(ReturnArray) */
     32   PP_Resource[] ReturnArray();
     33 };
     34 
     35 
     36 /* OK Interface(Interface2) */
     37 interface Interface2 {
     38   /* OK Member(OneParam) */
     39   PP_Bool OneParam(
     40       /* OK Param(resource) */
     41       [in] PP_Resource resource);
     42 
     43   /* OK Member(TwoParam) */
     44   PP_Resource TwoParam(
     45       /* OK Param(instance) */
     46       [in] PP_Instance instance,
     47       /* OK Param(size) */
     48       /* FAIL Missing argument. */
     49       [in] PP_Size size, );
     50 
     51   /* OK Member(ThreeParam) */
     52   PP_Bool ThreeParam(
     53       /* OK Param(graphics_2d) */
     54       [in] PP_Resource graphics_2d,
     55       /* FAIL Unexpected "," after symbol PP_Size. */
     56       [out] PP_Size,
     57       /* OK Param(is_always_opaque) */
     58       [out] PP_Bool is_always_opaque);
     59 };
     60