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

Unified Diff: runtime/vm/message_handler_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/message_handler.cc ('k') | runtime/vm/message_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/message_handler_test.cc
diff --git a/runtime/vm/message_handler_test.cc b/runtime/vm/message_handler_test.cc
index e6a39a6680468a61475796e077415df1fc72ba1f..fedb8231c9782bf4eb209b7fe11bcbd43594568e 100644
--- a/runtime/vm/message_handler_test.cc
+++ b/runtime/vm/message_handler_test.cc
@@ -39,16 +39,11 @@ class TestMessageHandler : public MessageHandler {
message_count_(0),
start_called_(false),
end_called_(false),
- results_(NULL) {
- }
+ results_(NULL) {}
- ~TestMessageHandler() {
- delete[] port_buffer_;
- }
+ ~TestMessageHandler() { delete[] port_buffer_; }
- void MessageNotify(Message::Priority priority) {
- notify_count_++;
- }
+ void MessageNotify(Message::Priority priority) { notify_count_++; }
MessageStatus HandleMessage(Message* message) {
// For testing purposes, keep a list of the ports
@@ -248,9 +243,9 @@ UNIT_TEST_CASE(MessageHandler_HandleNextMessage) {
UNIT_TEST_CASE(MessageHandler_HandleNextMessage_ProcessOOBAfterError) {
TestMessageHandler handler;
MessageHandler::MessageStatus results[] = {
- MessageHandler::kError, // oob_message1
- MessageHandler::kOK, // oob_message2
- MessageHandler::kOK, // unused
+ MessageHandler::kError, // oob_message1
+ MessageHandler::kOK, // oob_message2
+ MessageHandler::kOK, // unused
};
handler.set_results(results);
MessageHandlerTestPeer handler_peer(&handler);
@@ -278,10 +273,10 @@ UNIT_TEST_CASE(MessageHandler_HandleNextMessage_ProcessOOBAfterError) {
UNIT_TEST_CASE(MessageHandler_HandleNextMessage_Shutdown) {
TestMessageHandler handler;
MessageHandler::MessageStatus results[] = {
- MessageHandler::kOK, // oob_message1
- MessageHandler::kShutdown, // oob_message2
- MessageHandler::kOK, // unused
- MessageHandler::kOK, // unused
+ MessageHandler::kOK, // oob_message1
+ MessageHandler::kShutdown, // oob_message2
+ MessageHandler::kOK, // unused
+ MessageHandler::kOK, // unused
};
handler.set_results(results);
MessageHandlerTestPeer handler_peer(&handler);
@@ -368,9 +363,7 @@ UNIT_TEST_CASE(MessageHandler_Run) {
EXPECT(!handler.HasLivePorts());
handler_peer.increment_live_ports();
- handler.Run(&pool,
- TestStartFunction,
- TestEndFunction,
+ handler.Run(&pool, TestStartFunction, TestEndFunction,
reinterpret_cast<uword>(&handler));
Dart_Port port = PortMap::CreatePort(&handler);
Message* message = new Message(port, NULL, 0, Message::kNormalPriority);
« no previous file with comments | « runtime/vm/message_handler.cc ('k') | runtime/vm/message_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698