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

Unified Diff: mojo/public/interfaces/bindings/tests/test_structs.mojom

Issue 1741963002: Auto-formatted all .mojom files. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: mojo/public/interfaces/bindings/tests/test_structs.mojom
diff --git a/mojo/public/interfaces/bindings/tests/test_structs.mojom b/mojo/public/interfaces/bindings/tests/test_structs.mojom
index c0e12b744ad68904b5aeea9fc329a1dbdc2677bf..7884e4f66c9c88ca63625a6e96d2246d80cf6bf7 100644
--- a/mojo/public/interfaces/bindings/tests/test_structs.mojom
+++ b/mojo/public/interfaces/bindings/tests/test_structs.mojom
@@ -2,7 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-[DartPackage="_mojo_for_test_only", JavaPackage="org.chromium.mojo.bindings.test.mojom.test_structs"]
+[DartPackage="_mojo_for_test_only",
+JavaPackage="org.chromium.mojo.bindings.test.mojom.test_structs"]
module mojo.test;
import "mojo/public/interfaces/bindings/tests/rect.mojom";
@@ -35,9 +36,7 @@ struct RectPair {
Rect? second;
};
-struct EmptyStruct {
-};
-
+struct EmptyStruct{};
struct HandleStruct {
handle<message_pipe>? h;
@@ -215,10 +214,10 @@ struct FloatNumberValues {
struct IntegerNumberValues {
const int8 V0 = -128; // Minimum
- const int8 V1 = -1; // -1
- const int8 V2 = 0; // 0
- const int8 V3 = 42; // An arbitrary valid value.
- const int8 V4 = 127; // Maximum
+ const int8 V1 = -1; // -1
+ const int8 V2 = 0; // 0
jamesr 2016/02/29 23:40:49 this looks a lot worse when it isn't aligned
+ const int8 V3 = 42; // An arbitrary valid value.
+ const int8 V4 = 127; // Maximum
const int16 V5 = -32768; // ...
const int16 V6 = -1;
@@ -268,8 +267,8 @@ struct IntegerNumberValues {
// decoded correctly.
struct UnsignedNumberValues {
- const uint8 V0 = 0; // Minimum = 0.
- const uint8 V1 = 42; // An arbitrary valid value.
+ const uint8 V0 = 0; // Minimum = 0.
+ const uint8 V1 = 42; // An arbitrary valid value.
const uint8 V2 = 0xFF; // Maximum
const uint16 V3 = 0; // ...
@@ -294,7 +293,7 @@ struct UnsignedNumberValues {
uint16 f5 = V5;
uint32 f6 = V6;
- uint32 f7 = V7;
+ uint32 f7 = V7;
uint32 f8 = V8;
uint64 f9 = V9;
@@ -403,7 +402,6 @@ struct ContainsInterfaceRequest {
SomeInterface&? nullable_req;
};
-
struct DartKeywordStruct {
enum Keywords {
AWAIT,

Powered by Google App Engine
This is Rietveld 408576698