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

Side by Side Diff: mojo/public/interfaces/bindings/tests/regression_tests.mojom

Issue 2112313002: Dart: Fixes enum array encoding (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Module containing entities for regression tests of the generator. Entities 5 // Module containing entities for regression tests of the generator. Entities
6 // must never be modified, instead new entity must be added to add new tests. 6 // must never be modified, instead new entity must be added to add new tests.
7 [DartPackage="_mojo_for_test_only", 7 [DartPackage="_mojo_for_test_only",
8 JavaPackage="org.chromium.mojo.bindings.test.mojom.regression_tests"] 8 JavaPackage="org.chromium.mojo.bindings.test.mojom.regression_tests"]
9 module regression_tests; 9 module regression_tests;
10 10
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 enum NormalEnum { 83 enum NormalEnum {
84 FIRST, 84 FIRST,
85 SECOND, 85 SECOND,
86 }; 86 };
87 87
88 struct ContainsArrayOfEnum { 88 struct ContainsArrayOfEnum {
89 array<NormalEnum> array_of_enums; 89 array<NormalEnum> array_of_enums;
90 }; 90 };
91 91
92 struct ContainsNullableArrayOfEnum {
93 array<NormalEnum>? array_of_enums;
94 };
95
92 interface Regression551 { 96 interface Regression551 {
93 Get(array<string> key_prefixes) => (int32 result); 97 Get(array<string> key_prefixes) => (int32 result);
94 }; 98 };
95 99
96 interface ServiceName { 100 interface ServiceName {
97 serviceName() => (string serviceName); 101 serviceName() => (string serviceName);
98 }; 102 };
99 103
100 enum CamelCaseTestEnum { 104 enum CamelCaseTestEnum {
101 BOOL_THING, 105 BOOL_THING,
102 DOUBLE_THING, 106 DOUBLE_THING,
103 FLOAT_THING, 107 FLOAT_THING,
104 INT8_THING, 108 INT8_THING,
105 INT16THING, 109 INT16THING,
106 INT32_TH1NG, 110 INT32_TH1NG,
107 INT64_Th1ng, 111 INT64_Th1ng,
108 UINT8T_h1ng, 112 UINT8T_h1ng,
109 UINT16t_h1NG, 113 UINT16t_h1NG,
110 UINT32_TH1ng, 114 UINT32_TH1ng,
111 UINT64_TH1NG, 115 UINT64_TH1NG,
112 }; 116 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698