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

Unified Diff: content/browser/memory/memory_pressure_controller_impl_browsertest.cc

Issue 2023243002: Remove base::Tuple (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lint fix Created 4 years, 7 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
Index: content/browser/memory/memory_pressure_controller_impl_browsertest.cc
diff --git a/content/browser/memory/memory_pressure_controller_impl_browsertest.cc b/content/browser/memory/memory_pressure_controller_impl_browsertest.cc
index 6673abe6467632d61b6201b784d8b0c22965e90f..933891dc16d6c721e211384690ca6792bccecf1f 100644
--- a/content/browser/memory/memory_pressure_controller_impl_browsertest.cc
+++ b/content/browser/memory/memory_pressure_controller_impl_browsertest.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <tuple>
+
#include "base/bind.h"
#include "base/memory/memory_pressure_listener.h"
#include "content/browser/memory/memory_message_filter.h"
@@ -24,7 +26,7 @@ MATCHER_P(IsSetSuppressedMessage, suppressed, "") {
if (!MemoryMsg_SetPressureNotificationsSuppressed::Read(message.get(),
&param))
return false;
- return suppressed == base::get<0>(param);
+ return suppressed == std::get<0>(param);
}
MATCHER_P(IsSimulateMessage, level, "") {
@@ -35,7 +37,7 @@ MATCHER_P(IsSimulateMessage, level, "") {
MemoryMsg_SimulatePressureNotification::Param param;
if (!MemoryMsg_SimulatePressureNotification::Read(message.get(), &param))
return false;
- return level == base::get<0>(param);
+ return level == std::get<0>(param);
}
MATCHER_P(IsPressureMessage, level, "") {
@@ -46,7 +48,7 @@ MATCHER_P(IsPressureMessage, level, "") {
MemoryMsg_PressureNotification::Param param;
if (!MemoryMsg_PressureNotification::Read(message.get(), &param))
return false;
- return level == base::get<0>(param);
+ return level == std::get<0>(param);
}
class MemoryMessageFilterForTesting : public MemoryMessageFilter {

Powered by Google App Engine
This is Rietveld 408576698