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

Unified Diff: util/mac/process_reader_test.cc

Issue 567283002: Add exc_client_variants (UniversalRaiseException()) and its test (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Put MachThreadSelf in mach_extensions.{cc,h} Created 6 years, 3 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 | « no previous file | util/mach/exc_client_variants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/mac/process_reader_test.cc
diff --git a/util/mac/process_reader_test.cc b/util/mac/process_reader_test.cc
index 60a07ff177f10b76bb81a0a52d86619410d5c70d..f60d3f87d6e94a9dfe5cbe9b98bc360bb67c6ab7 100644
--- a/util/mac/process_reader_test.cc
+++ b/util/mac/process_reader_test.cc
@@ -32,6 +32,7 @@
#include "build/build_config.h"
#include "gtest/gtest.h"
#include "util/file/fd_io.h"
+#include "util/mach/mach_extensions.h"
#include "util/stdlib/pointer_container.h"
#include "util/test/errors.h"
#include "util/test/mac/dyld.h"
@@ -153,7 +154,7 @@ TEST(ProcessReader, SelfOneThread) {
EXPECT_EQ(PthreadToThreadID(pthread_self()), threads[0].id);
- base::mac::ScopedMachSendRight thread_self(mach_thread_self());
+ mach_port_t thread_self = MachThreadSelf();
EXPECT_EQ(thread_self, threads[0].port);
EXPECT_EQ(0, threads[0].suspend_count);
@@ -418,7 +419,7 @@ TEST(ProcessReader, SelfSeveralThreads) {
// When testing in-process, verify that when this thread shows up in the
// vector, it has the expected thread port, and that this thread port only
// shows up once.
- base::mac::ScopedMachSendRight thread_self(mach_thread_self());
+ mach_port_t thread_self = MachThreadSelf();
bool found_thread_self = false;
for (const ProcessReader::Thread& thread : threads) {
if (thread.port == thread_self) {
« no previous file with comments | « no previous file | util/mach/exc_client_variants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698