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

Unified Diff: util/mach/mach_message_test.cc

Issue 772133004: Move mach_message_util.* to mach_message.* (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 6 years 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 | « util/mach/mach_message.cc ('k') | util/mach/mach_message_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/mach/mach_message_test.cc
diff --git a/util/mach/mach_message_util_test.cc b/util/mach/mach_message_test.cc
similarity index 91%
rename from util/mach/mach_message_util_test.cc
rename to util/mach/mach_message_test.cc
index 66543067b407b1771b220d51d88a8e83fde0ba15..b807b7ed5205f098b788936f56cf0616d61ba18c 100644
--- a/util/mach/mach_message_util_test.cc
+++ b/util/mach/mach_message_test.cc
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "util/mach/mach_message_util.h"
+#include "util/mach/mach_message.h"
#include "base/basictypes.h"
#include "gtest/gtest.h"
@@ -22,7 +22,7 @@ namespace crashpad {
namespace test {
namespace {
-TEST(MachMessageUtil, PrepareMIGReplyFromRequest_SetMIGReplyError) {
+TEST(MachMessage, PrepareMIGReplyFromRequest_SetMIGReplyError) {
mach_msg_header_t request;
request.msgh_bits =
MACH_MSGH_BITS_COMPLEX |
@@ -63,7 +63,7 @@ TEST(MachMessageUtil, PrepareMIGReplyFromRequest_SetMIGReplyError) {
EXPECT_EQ(MIG_BAD_ID, reply.RetCode);
}
-TEST(MachMessageUtil, MachMessageTrailerFromHeader) {
+TEST(MachMessage, MachMessageTrailerFromHeader) {
mach_msg_empty_t empty;
empty.send.header.msgh_size = sizeof(mach_msg_empty_send_t);
EXPECT_EQ(&empty.rcv.trailer,
@@ -82,8 +82,7 @@ TEST(MachMessageUtil, MachMessageTrailerFromHeader) {
TestMessage test;
test.send.msgh_size = sizeof(TestSendMessage);
- EXPECT_EQ(&test.receive.trailer,
- MachMessageTrailerFromHeader(&test.receive));
+ EXPECT_EQ(&test.receive.trailer, MachMessageTrailerFromHeader(&test.receive));
}
} // namespace
« no previous file with comments | « util/mach/mach_message.cc ('k') | util/mach/mach_message_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698