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

Unified Diff: runtime/vm/dart_entry_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/dart_entry.cc ('k') | runtime/vm/datastream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_entry_test.cc
diff --git a/runtime/vm/dart_entry_test.cc b/runtime/vm/dart_entry_test.cc
index d0758195522bb5dd82395b703dd5eb0e269a1b27..eb694cfb584a3d5361a7b005afff433fd4b7f34b 100644
--- a/runtime/vm/dart_entry_test.cc
+++ b/runtime/vm/dart_entry_test.cc
@@ -23,14 +23,13 @@ TEST_CASE(DartEntry) {
"}\n";
String& url = String::Handle(String::New("dart-test:DartEntry"));
String& source = String::Handle(String::New(kScriptChars));
- Script& script = Script::Handle(Script::New(url,
- source,
- RawScript::kScriptTag));
+ Script& script =
+ Script::Handle(Script::New(url, source, RawScript::kScriptTag));
Library& lib = Library::Handle(Library::CoreLibrary());
EXPECT_EQ(true, CompilerTest::TestCompileScript(lib, script));
EXPECT(ClassFinalizer::ProcessPendingClasses());
- Class& cls = Class::Handle(
- lib.LookupClass(String::Handle(Symbols::New(thread, "A"))));
+ Class& cls =
+ Class::Handle(lib.LookupClass(String::Handle(Symbols::New(thread, "A"))));
EXPECT(!cls.IsNull()); // No ambiguity error expected.
String& name = String::Handle(String::New("foo"));
Function& function = Function::Handle(cls.LookupStaticFunction(name));
@@ -51,14 +50,13 @@ TEST_CASE(InvokeStatic_CompileError) {
"}\n";
String& url = String::Handle(String::New("dart-test:DartEntry"));
String& source = String::Handle(String::New(kScriptChars));
- Script& script = Script::Handle(Script::New(url,
- source,
- RawScript::kScriptTag));
+ Script& script =
+ Script::Handle(Script::New(url, source, RawScript::kScriptTag));
Library& lib = Library::Handle(Library::CoreLibrary());
EXPECT_EQ(true, CompilerTest::TestCompileScript(lib, script));
EXPECT(ClassFinalizer::ProcessPendingClasses());
- Class& cls = Class::Handle(
- lib.LookupClass(String::Handle(Symbols::New(thread, "A"))));
+ Class& cls =
+ Class::Handle(lib.LookupClass(String::Handle(Symbols::New(thread, "A"))));
EXPECT(!cls.IsNull()); // No ambiguity error expected.
String& name = String::Handle(String::New("foo"));
Function& function = Function::Handle(cls.LookupStaticFunction(name));
@@ -77,14 +75,13 @@ TEST_CASE(InvokeDynamic_CompileError) {
"}\n";
String& url = String::Handle(String::New("dart-test:DartEntry"));
String& source = String::Handle(String::New(kScriptChars));
- Script& script = Script::Handle(Script::New(url,
- source,
- RawScript::kScriptTag));
+ Script& script =
+ Script::Handle(Script::New(url, source, RawScript::kScriptTag));
Library& lib = Library::Handle(Library::CoreLibrary());
EXPECT_EQ(true, CompilerTest::TestCompileScript(lib, script));
EXPECT(ClassFinalizer::ProcessPendingClasses());
- Class& cls = Class::Handle(
- lib.LookupClass(String::Handle(Symbols::New(thread, "A"))));
+ Class& cls =
+ Class::Handle(lib.LookupClass(String::Handle(Symbols::New(thread, "A"))));
EXPECT(!cls.IsNull()); // No ambiguity error expected.
// Invoke the constructor.
@@ -93,7 +90,7 @@ TEST_CASE(InvokeDynamic_CompileError) {
constructor_arguments.SetAt(0, instance);
String& constructor_name = String::Handle(Symbols::New(thread, "A."));
Function& constructor =
- Function::Handle(cls.LookupConstructor(constructor_name));
+ Function::Handle(cls.LookupConstructor(constructor_name));
ASSERT(!constructor.IsNull());
DartEntry::InvokeFunction(constructor, constructor_arguments);
@@ -103,8 +100,8 @@ TEST_CASE(InvokeDynamic_CompileError) {
EXPECT(!function.IsNull());
const Array& args = Array::Handle(Array::New(1));
args.SetAt(0, instance);
- const Object& retval = Object::Handle(DartEntry::InvokeFunction(function,
- args));
+ const Object& retval =
+ Object::Handle(DartEntry::InvokeFunction(function, args));
EXPECT(retval.IsError());
EXPECT_SUBSTRING("++++", Error::Cast(retval).ToErrorCString());
}
« no previous file with comments | « runtime/vm/dart_entry.cc ('k') | runtime/vm/datastream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698