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

Unified Diff: runtime/vm/atomic_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/atomic_simulator.h ('k') | runtime/vm/atomic_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/atomic_test.cc
diff --git a/runtime/vm/atomic_test.cc b/runtime/vm/atomic_test.cc
index 922429941f1f81848f69d6f09eeb692fb3ccead2..858ed35218f6d5ca0c85472c523d1d9f8def207f 100644
--- a/runtime/vm/atomic_test.cc
+++ b/runtime/vm/atomic_test.cc
@@ -2,9 +2,9 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+#include "vm/atomic.h"
#include "platform/assert.h"
#include "platform/utils.h"
-#include "vm/atomic.h"
#include "vm/globals.h"
#include "vm/unit_test.h"
@@ -17,7 +17,6 @@ VM_UNIT_TEST_CASE(FetchAndIncrement) {
EXPECT_EQ(static_cast<uintptr_t>(43), v);
}
-
VM_UNIT_TEST_CASE(FetchAndDecrement) {
uintptr_t v = 42;
EXPECT_EQ(static_cast<uintptr_t>(42),
@@ -25,7 +24,6 @@ VM_UNIT_TEST_CASE(FetchAndDecrement) {
EXPECT_EQ(static_cast<uintptr_t>(41), v);
}
-
VM_UNIT_TEST_CASE(FetchAndIncrementSigned) {
intptr_t v = -42;
EXPECT_EQ(static_cast<intptr_t>(-42),
@@ -33,7 +31,6 @@ VM_UNIT_TEST_CASE(FetchAndIncrementSigned) {
EXPECT_EQ(static_cast<intptr_t>(-41), v);
}
-
VM_UNIT_TEST_CASE(FetchAndDecrementSigned) {
intptr_t v = -42;
EXPECT_EQ(static_cast<intptr_t>(-42),
@@ -41,27 +38,23 @@ VM_UNIT_TEST_CASE(FetchAndDecrementSigned) {
EXPECT_EQ(static_cast<intptr_t>(-43), v);
}
-
VM_UNIT_TEST_CASE(IncrementBy) {
intptr_t v = 42;
AtomicOperations::IncrementBy(&v, 100);
EXPECT_EQ(static_cast<intptr_t>(142), v);
}
-
VM_UNIT_TEST_CASE(DecrementBy) {
intptr_t v = 42;
AtomicOperations::DecrementBy(&v, 41);
EXPECT_EQ(static_cast<intptr_t>(1), v);
}
-
VM_UNIT_TEST_CASE(LoadRelaxed) {
uword v = 42;
EXPECT_EQ(static_cast<uword>(42), AtomicOperations::LoadRelaxed(&v));
}
-
TEST_CASE(CompareAndSwapWord) {
uword old_value = 42;
uword new_value = 100;
@@ -70,7 +63,6 @@ TEST_CASE(CompareAndSwapWord) {
EXPECT_EQ(static_cast<uword>(42), result);
}
-
TEST_CASE(CompareAndSwapUint32) {
uint32_t old_value = 42;
uint32_t new_value = 100;
« no previous file with comments | « runtime/vm/atomic_simulator.h ('k') | runtime/vm/atomic_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698