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

Unified Diff: runtime/vm/exceptions_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/exceptions.cc ('k') | runtime/vm/fixed_cache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/exceptions_test.cc
diff --git a/runtime/vm/exceptions_test.cc b/runtime/vm/exceptions_test.cc
index 5fbfaa240fca84bdc305713b1b2022a28b821e4c..55ca3941981b626c2eed2b2b208fdd3626cd7cc9 100644
--- a/runtime/vm/exceptions_test.cc
+++ b/runtime/vm/exceptions_test.cc
@@ -9,11 +9,9 @@
namespace dart {
-
#define FUNCTION_NAME(name) UnhandledExcp_##name
#define REGISTER_FUNCTION(name, count) {"" #name, FUNCTION_NAME(name), count},
-
void FUNCTION_NAME(Unhandled_equals)(Dart_NativeArguments args) {
NativeArguments* arguments = reinterpret_cast<NativeArguments*>(args);
const Instance& expected = Instance::CheckedHandle(arguments->NativeArgAt(0));
@@ -25,7 +23,6 @@ void FUNCTION_NAME(Unhandled_equals)(Dart_NativeArguments args) {
}
}
-
void FUNCTION_NAME(Unhandled_invoke)(Dart_NativeArguments args) {
// Invoke the specified entry point.
Dart_Handle cls = Dart_GetClass(TestCase::lib(), NewString("Second"));
@@ -35,7 +32,6 @@ void FUNCTION_NAME(Unhandled_invoke)(Dart_NativeArguments args) {
return;
}
-
void FUNCTION_NAME(Unhandled_invoke2)(Dart_NativeArguments args) {
// Invoke the specified entry point.
Dart_Handle cls = Dart_GetClass(TestCase::lib(), NewString("Second"));
@@ -49,7 +45,6 @@ void FUNCTION_NAME(Unhandled_invoke2)(Dart_NativeArguments args) {
return;
}
-
// List all native functions implemented in the vm or core boot strap dart
// libraries so that we can resolve the native function to it's entry
// point.
@@ -58,14 +53,12 @@ void FUNCTION_NAME(Unhandled_invoke2)(Dart_NativeArguments args) {
V(Unhandled_invoke, 0) \
V(Unhandled_invoke2, 0)
-
static struct NativeEntries {
const char* name_;
Dart_NativeFunction function_;
int argument_count_;
} BuiltinEntries[] = {UNHANDLED_NATIVE_LIST(REGISTER_FUNCTION)};
-
static Dart_NativeFunction native_lookup(Dart_Handle name,
int argument_count,
bool* auto_setup_scope) {
@@ -86,7 +79,6 @@ static Dart_NativeFunction native_lookup(Dart_Handle name,
return NULL;
}
-
// Unit test case to verify unhandled exceptions.
TEST_CASE(UnhandledExceptions) {
const char* kScriptChars =
« no previous file with comments | « runtime/vm/exceptions.cc ('k') | runtime/vm/fixed_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698