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

Unified Diff: ipc/attachment_broker_privileged_win_unittest.cc

Issue 1770013002: Replace base::Tuple in //ipc with std::tuple (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: +#include Created 4 years, 9 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 | « ipc/attachment_broker_privileged_win.cc ('k') | ipc/ipc_message_macros.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/attachment_broker_privileged_win_unittest.cc
diff --git a/ipc/attachment_broker_privileged_win_unittest.cc b/ipc/attachment_broker_privileged_win_unittest.cc
index 870e262a11122f48503573014d7d3315da3c6ed6..9f720c8a048a35e1246f6937c9d5fcf125081663 100644
--- a/ipc/attachment_broker_privileged_win_unittest.cc
+++ b/ipc/attachment_broker_privileged_win_unittest.cc
@@ -6,6 +6,8 @@
#include <windows.h>
+#include <tuple>
+
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
@@ -76,7 +78,7 @@ ScopedHandle GetHandleFromTestHandleWinMsg(const IPC::Message& message) {
return ScopedHandle(nullptr);
}
- IPC::HandleWin handle_win = base::get<1>(p);
+ IPC::HandleWin handle_win = std::get<1>(p);
return ScopedHandle(handle_win.get_handle());
}
@@ -97,7 +99,7 @@ scoped_ptr<base::SharedMemory> GetSharedMemoryFromSharedMemoryHandleMsg1(
return nullptr;
}
- base::SharedMemoryHandle handle = base::get<0>(p);
+ base::SharedMemoryHandle handle = std::get<0>(p);
scoped_ptr<base::SharedMemory> shared_memory(
new base::SharedMemory(handle, false));
@@ -123,9 +125,9 @@ bool GetHandleFromTestTwoHandleWinMsg(const IPC::Message& message,
return false;
}
- IPC::HandleWin handle_win = base::get<0>(p);
+ IPC::HandleWin handle_win = std::get<0>(p);
*h1 = handle_win.get_handle();
- handle_win = base::get<1>(p);
+ handle_win = std::get<1>(p);
*h2 = handle_win.get_handle();
return true;
}
« no previous file with comments | « ipc/attachment_broker_privileged_win.cc ('k') | ipc/ipc_message_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698