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

Unified Diff: runtime/vm/json_test.cc

Issue 2974233002: VM: Re-format to use at most one newline between functions (Closed)
Patch Set: Rebase and merge Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/json_stream.cc ('k') | runtime/vm/kernel.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/json_test.cc
diff --git a/runtime/vm/json_test.cc b/runtime/vm/json_test.cc
index 372ec2b5eb1a4942813b1548b08622958d8a251c..f53b40cc3395edabff138f1a5fc9b6b0f28f3842 100644
--- a/runtime/vm/json_test.cc
+++ b/runtime/vm/json_test.cc
@@ -4,9 +4,9 @@
#include "platform/assert.h"
#include "platform/text_buffer.h"
+#include "vm/dart_api_impl.h"
#include "vm/json_stream.h"
#include "vm/unit_test.h"
-#include "vm/dart_api_impl.h"
namespace dart {
@@ -20,7 +20,6 @@ TEST_CASE(JSON_TextBuffer) {
EXPECT_STREQ("{ \"length\" : 175, \"command\" : \"stopIt\" }", w.buf());
}
-
TEST_CASE(JSON_JSONStream_Primitives) {
{
JSONStream js;
@@ -82,7 +81,6 @@ TEST_CASE(JSON_JSONStream_Primitives) {
}
}
-
TEST_CASE(JSON_JSONStream_Array) {
JSONStream js;
{
@@ -93,7 +91,6 @@ TEST_CASE(JSON_JSONStream_Array) {
EXPECT_STREQ("[true,false]", js.ToCString());
}
-
TEST_CASE(JSON_JSONStream_Object) {
JSONStream js;
{
@@ -114,7 +111,6 @@ TEST_CASE(JSON_JSONStream_NestedObject) {
EXPECT_STREQ("{\"key\":{\"key1\":\"d\"}}", js.ToCString());
}
-
TEST_CASE(JSON_JSONStream_ObjectArray) {
JSONStream js;
{
@@ -131,7 +127,6 @@ TEST_CASE(JSON_JSONStream_ObjectArray) {
EXPECT_STREQ("[{\"key\":\"e\"},{\"yek\":\"f\"}]", js.ToCString());
}
-
TEST_CASE(JSON_JSONStream_ArrayArray) {
JSONStream js;
{
@@ -148,7 +143,6 @@ TEST_CASE(JSON_JSONStream_ArrayArray) {
EXPECT_STREQ("[[4],[false]]", js.ToCString());
}
-
TEST_CASE(JSON_JSONStream_Printf) {
JSONStream js;
{
@@ -158,7 +152,6 @@ TEST_CASE(JSON_JSONStream_Printf) {
EXPECT_STREQ("[\"2 hello\"]", js.ToCString());
}
-
TEST_CASE(JSON_JSONStream_ObjectPrintf) {
JSONStream js;
{
@@ -168,7 +161,6 @@ TEST_CASE(JSON_JSONStream_ObjectPrintf) {
EXPECT_STREQ("{\"key\":\"2 hello\"}", js.ToCString());
}
-
TEST_CASE(JSON_JSONStream_DartObject) {
JSONStream js;
{
@@ -209,7 +201,6 @@ TEST_CASE(JSON_JSONStream_EscapedString) {
EXPECT_STREQ("[\"Hel\\\"\\\"lo\\r\\n\\t\"]", js.ToCString());
}
-
TEST_CASE(JSON_JSONStream_DartString) {
const char* kScriptChars =
"var ascii = 'Hello, World!';\n"
@@ -292,7 +283,6 @@ TEST_CASE(JSON_JSONStream_DartString) {
EXPECT_STREQ("{\"wrongEncoding\":\"𝄞\\uD834𝄞\"}", js.ToCString());
}
-
{
result = Dart_GetField(lib, NewString("nullInMiddle"));
EXPECT_VALID(result);
@@ -308,7 +298,6 @@ TEST_CASE(JSON_JSONStream_DartString) {
}
}
-
TEST_CASE(JSON_JSONStream_Params) {
const char* param_keys[] = {"dog", "cat"};
const char* param_values[] = {"apple", "banana"};
@@ -324,7 +313,6 @@ TEST_CASE(JSON_JSONStream_Params) {
EXPECT(!js.ParamIs("dog", "banana"));
}
-
TEST_CASE(JSON_JSONStream_AppendJSONStreamConsumer) {
JSONStream js;
« no previous file with comments | « runtime/vm/json_stream.cc ('k') | runtime/vm/kernel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698