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

Unified Diff: content/browser/browser_io_surface_manager_mac_unittest.cc

Issue 1351753002: Mac: Ensure that Mach messages always get a reply (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: IRF Created 5 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 | « content/browser/browser_io_surface_manager_mac.cc ('k') | content/child/child_io_surface_manager_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_io_surface_manager_mac_unittest.cc
diff --git a/content/browser/browser_io_surface_manager_mac_unittest.cc b/content/browser/browser_io_surface_manager_mac_unittest.cc
index 1c77ee38f796366176571f6f125d7098ef75e669..b8863e4ad9dcdf1ff2a297f696280071434db192 100644
--- a/content/browser/browser_io_surface_manager_mac_unittest.cc
+++ b/content/browser/browser_io_surface_manager_mac_unittest.cc
@@ -31,7 +31,8 @@ class BrowserIOSurfaceManagerTest : public testing::Test {
bool HandleRegisterIOSurfaceRequest(
const IOSurfaceManagerHostMsg_RegisterIOSurface& request,
IOSurfaceManagerMsg_RegisterIOSurfaceReply* reply) {
- return io_surface_manager_.HandleRegisterIOSurfaceRequest(request, reply);
+ io_surface_manager_.HandleRegisterIOSurfaceRequest(request, reply);
+ return reply->result;
}
bool HandleUnregisterIOSurfaceRequest(
@@ -42,7 +43,8 @@ class BrowserIOSurfaceManagerTest : public testing::Test {
bool HandleAcquireIOSurfaceRequest(
const IOSurfaceManagerHostMsg_AcquireIOSurface& request,
IOSurfaceManagerMsg_AcquireIOSurfaceReply* reply) {
- return io_surface_manager_.HandleAcquireIOSurfaceRequest(request, reply);
+ io_surface_manager_.HandleAcquireIOSurfaceRequest(request, reply);
+ return reply->result;
}
// Helper function used to register an IOSurface for testing.
« no previous file with comments | « content/browser/browser_io_surface_manager_mac.cc ('k') | content/child/child_io_surface_manager_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698