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

Unified Diff: mojo/edk/system/message_in_transit_test_utils.cc

Issue 1649633002: Remove files that are no longer used in the Port EDK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « mojo/edk/system/message_in_transit_test_utils.h ('k') | mojo/edk/system/raw_channel.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/message_in_transit_test_utils.cc
diff --git a/mojo/edk/system/message_in_transit_test_utils.cc b/mojo/edk/system/message_in_transit_test_utils.cc
deleted file mode 100644
index 122923da9cf8333c2cf85903f1d6374b0c5dd608..0000000000000000000000000000000000000000
--- a/mojo/edk/system/message_in_transit_test_utils.cc
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "mojo/edk/system/message_in_transit_test_utils.h"
-
-#include <stdint.h>
-
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace mojo {
-namespace edk {
-namespace test {
-
-scoped_ptr<MessageInTransit> MakeTestMessage(unsigned id) {
- return make_scoped_ptr(
- new MessageInTransit(MessageInTransit::Type::MESSAGE,
- static_cast<uint32_t>(sizeof(id)), &id));
-}
-
-void VerifyTestMessage(const MessageInTransit* message, unsigned id) {
- ASSERT_TRUE(message);
- EXPECT_EQ(MessageInTransit::Type::MESSAGE, message->type());
- EXPECT_EQ(sizeof(id), message->num_bytes());
- EXPECT_EQ(id, *static_cast<const unsigned*>(message->bytes()));
-}
-
-bool IsTestMessage(MessageInTransit* message, unsigned* id) {
- if (message->type() != MessageInTransit::Type::MESSAGE ||
- message->num_bytes() != sizeof(*id))
- return false;
-
- *id = *static_cast<const unsigned*>(message->bytes());
- return true;
-}
-
-} // namespace test
-} // namespace edk
-} // namespace mojo
« no previous file with comments | « mojo/edk/system/message_in_transit_test_utils.h ('k') | mojo/edk/system/raw_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698