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

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

Issue 291173010: Mojo: Mojom: Remove support for octal. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 import "sample_import.mojom" 5 import "sample_import.mojom"
6 import "sample_import2.mojom" 6 import "sample_import2.mojom"
7 7
8 [JavaPackage="org.chromium.mojo.bindings.test.sample"] 8 [JavaPackage="org.chromium.mojo.bindings.test.sample"]
9 module sample { 9 module sample {
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 int16 a2@2 = 1234; 52 int16 a2@2 = 1234;
53 uint16 a3@3 = 34567; 53 uint16 a3@3 = 34567;
54 int32 a4@4 = 123456; 54 int32 a4@4 = 123456;
55 // TODO(vtl): crbug.com/375522 55 // TODO(vtl): crbug.com/375522
56 uint32 a5@5 /* = 3456789012 */; 56 uint32 a5@5 /* = 3456789012 */;
57 // TODO(vtl): crbug.com/375522 57 // TODO(vtl): crbug.com/375522
58 int64 a6@6 = 111111111111; 58 int64 a6@6 = 111111111111;
59 uint64 a7@7 /* = 9999999999999999999 */; 59 uint64 a7@7 /* = 9999999999999999999 */;
60 int32 a8@8 = 0x12345; 60 int32 a8@8 = 0x12345;
61 int32 a9@9 = -0x12345; 61 int32 a9@9 = -0x12345;
62 // TODO(vtl): crbug.com/375829 62 int32 a10@10 = +1234;
63 int32 a10@10 /* = 010 */; // Octal. 63 bool a11@11 = true;
64 int32 a11@11 /* = -010 */; // Negative octal. 64 bool a12@12 = false;
65 int32 a12@12 = +1234; 65 float a13@13 = 123.25;
66 bool a13@13 = true; 66 double a14@14 = 1234567890.123;
67 bool a14@14 = false; 67 double a15@15 = 1E10;
68 float a15@15 = 123.25; 68 double a16@16 = -1.2E+20;
69 double a16@16 = 1234567890.123; 69 double a17@17 = +1.23E-20;
70 double a17@17 = 1E10;
71 double a18@18 = -1.2E+20;
72 double a19@19 = +1.23E-20;
73 70
74 // TODO(vtl): Add tests for default vs null when those are implemented (for 71 // TODO(vtl): Add tests for default vs null when those are implemented (for
75 // structs, arrays, and strings). 72 // structs, arrays, and strings).
76 sample.DefaultsTestInner a20@20; 73 sample.DefaultsTestInner a18@18;
77 uint8[] a21@21; 74 uint8[] a19@19;
78 string a22@22; 75 string a20@20;
79 }; 76 };
80 77
81 struct StructWithHoleV1 { 78 struct StructWithHoleV1 {
82 int32 v1 = 1; 79 int32 v1 = 1;
83 int64 v2 = 2; 80 int64 v2 = 2;
84 }; 81 };
85 82
86 struct StructWithHoleV2 { 83 struct StructWithHoleV2 {
87 int32 v1 = 1; 84 int32 v1 = 1;
88 int64 v2 = 2; 85 int64 v2 = 2;
(...skipping 14 matching lines...) Expand all
103 DidFrobinate@0(int32 result@0); 100 DidFrobinate@0(int32 result@0);
104 }; 101 };
105 102
106 // This interface is referenced above where it is defined. It also refers to 103 // This interface is referenced above where it is defined. It also refers to
107 // itself from a method. 104 // itself from a method.
108 interface Port { 105 interface Port {
109 PostMessage@0(string message_text@0, Port port@1); 106 PostMessage@0(string message_text@0, Port port@1);
110 }; 107 };
111 108
112 } 109 }
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/tests/sample_service_unittest.cc ('k') | mojo/public/tools/bindings/pylib/mojom/parse/lexer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698