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

Unified Diff: runtime/vm/source_report_test.cc

Issue 2481873005: clang-format runtime/vm (Closed)
Patch Set: Merge Created 4 years, 1 month 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/source_report.cc ('k') | runtime/vm/spaces.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/source_report_test.cc
diff --git a/runtime/vm/source_report_test.cc b/runtime/vm/source_report_test.cc
index 2d3f5bcb5fae75706e50c1300597bde097ac5373..1651c4f712fc363f93184032a69fe887179e6f72 100644
--- a/runtime/vm/source_report_test.cc
+++ b/runtime/vm/source_report_test.cc
@@ -31,8 +31,8 @@ TEST_CASE(SourceReport_Coverage_NoCalls) {
Library& lib = Library::Handle();
lib ^= ExecuteScript(kScript);
ASSERT(!lib.IsNull());
- const Script& script = Script::Handle(lib.LookupScript(
- String::Handle(String::New("test-lib"))));
+ const Script& script =
+ Script::Handle(lib.LookupScript(String::Handle(String::New("test-lib"))));
SourceReport report(SourceReport::kCoverage);
JSONStream js;
@@ -68,8 +68,8 @@ TEST_CASE(SourceReport_Coverage_SimpleCall) {
Library& lib = Library::Handle();
lib ^= ExecuteScript(kScript);
ASSERT(!lib.IsNull());
- const Script& script = Script::Handle(lib.LookupScript(
- String::Handle(String::New("test-lib"))));
+ const Script& script =
+ Script::Handle(lib.LookupScript(String::Handle(String::New("test-lib"))));
SourceReport report(SourceReport::kCoverage);
JSONStream js;
@@ -113,8 +113,8 @@ TEST_CASE(SourceReport_Coverage_ForceCompile) {
Library& lib = Library::Handle();
lib ^= ExecuteScript(kScript);
ASSERT(!lib.IsNull());
- const Script& script = Script::Handle(lib.LookupScript(
- String::Handle(String::New("test-lib"))));
+ const Script& script =
+ Script::Handle(lib.LookupScript(String::Handle(String::New("test-lib"))));
SourceReport report(SourceReport::kCoverage, SourceReport::kForceCompile);
JSONStream js;
@@ -157,8 +157,8 @@ TEST_CASE(SourceReport_Coverage_UnusedClass_NoForceCompile) {
Library& lib = Library::Handle();
lib ^= ExecuteScript(kScript);
ASSERT(!lib.IsNull());
- const Script& script = Script::Handle(lib.LookupScript(
- String::Handle(String::New("test-lib"))));
+ const Script& script =
+ Script::Handle(lib.LookupScript(String::Handle(String::New("test-lib"))));
SourceReport report(SourceReport::kCoverage);
JSONStream js;
@@ -200,8 +200,8 @@ TEST_CASE(SourceReport_Coverage_UnusedClass_ForceCompile) {
Library& lib = Library::Handle();
lib ^= ExecuteScript(kScript);
ASSERT(!lib.IsNull());
- const Script& script = Script::Handle(lib.LookupScript(
- String::Handle(String::New("test-lib"))));
+ const Script& script =
+ Script::Handle(lib.LookupScript(String::Handle(String::New("test-lib"))));
SourceReport report(SourceReport::kCoverage, SourceReport::kForceCompile);
JSONStream js;
@@ -244,8 +244,8 @@ TEST_CASE(SourceReport_Coverage_UnusedClass_ForceCompileError) {
Library& lib = Library::Handle();
lib ^= ExecuteScript(kScript);
ASSERT(!lib.IsNull());
- const Script& script = Script::Handle(lib.LookupScript(
- String::Handle(String::New("test-lib"))));
+ const Script& script =
+ Script::Handle(lib.LookupScript(String::Handle(String::New("test-lib"))));
SourceReport report(SourceReport::kCoverage, SourceReport::kForceCompile);
JSONStream js;
@@ -297,8 +297,8 @@ TEST_CASE(SourceReport_Coverage_NestedFunctions) {
Library& lib = Library::Handle();
lib ^= ExecuteScript(kScript);
ASSERT(!lib.IsNull());
- const Script& script = Script::Handle(lib.LookupScript(
- String::Handle(String::New("test-lib"))));
+ const Script& script =
+ Script::Handle(lib.LookupScript(String::Handle(String::New("test-lib"))));
SourceReport report(SourceReport::kCoverage);
JSONStream js;
@@ -353,8 +353,8 @@ TEST_CASE(SourceReport_Coverage_RestrictedRange) {
Library& lib = Library::Handle();
lib ^= ExecuteScript(kScript);
ASSERT(!lib.IsNull());
- const Script& script = Script::Handle(lib.LookupScript(
- String::Handle(String::New("test-lib"))));
+ const Script& script =
+ Script::Handle(lib.LookupScript(String::Handle(String::New("test-lib"))));
const Function& helper = Function::Handle(
lib.LookupLocalFunction(String::Handle(String::New("helper0"))));
@@ -480,8 +480,8 @@ TEST_CASE(SourceReport_CallSites_SimpleCall) {
Library& lib = Library::Handle();
lib ^= ExecuteScript(kScript);
ASSERT(!lib.IsNull());
- const Script& script = Script::Handle(lib.LookupScript(
- String::Handle(String::New("test-lib"))));
+ const Script& script =
+ Script::Handle(lib.LookupScript(String::Handle(String::New("test-lib"))));
SourceReport report(SourceReport::kCallSites);
JSONStream js;
@@ -537,8 +537,8 @@ TEST_CASE(SourceReport_CallSites_PolymorphicCall) {
Library& lib = Library::Handle();
lib ^= ExecuteScript(kScript);
ASSERT(!lib.IsNull());
- const Script& script = Script::Handle(lib.LookupScript(
- String::Handle(String::New("test-lib"))));
+ const Script& script =
+ Script::Handle(lib.LookupScript(String::Handle(String::New("test-lib"))));
const Function& helper = Function::Handle(
lib.LookupLocalFunction(String::Handle(String::New("helper"))));
@@ -601,10 +601,10 @@ TEST_CASE(SourceReport_MultipleReports) {
Library& lib = Library::Handle();
lib ^= ExecuteScript(kScript);
ASSERT(!lib.IsNull());
- const Script& script = Script::Handle(lib.LookupScript(
- String::Handle(String::New("test-lib"))));
+ const Script& script =
+ Script::Handle(lib.LookupScript(String::Handle(String::New("test-lib"))));
- SourceReport report(SourceReport::kCallSites|SourceReport::kCoverage);
+ SourceReport report(SourceReport::kCallSites | SourceReport::kCoverage);
JSONStream js;
report.PrintJSON(&js, script);
ElideJSONSubstring("classes", js.ToCString(), buffer);
@@ -654,8 +654,8 @@ TEST_CASE(SourceReport_PossibleBreakpoints_Simple) {
Library& lib = Library::Handle();
lib ^= ExecuteScript(kScript);
ASSERT(!lib.IsNull());
- const Script& script = Script::Handle(lib.LookupScript(
- String::Handle(String::New("test-lib"))));
+ const Script& script =
+ Script::Handle(lib.LookupScript(String::Handle(String::New("test-lib"))));
SourceReport report(SourceReport::kPossibleBreakpoints);
JSONStream js;
« no previous file with comments | « runtime/vm/source_report.cc ('k') | runtime/vm/spaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698