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

Unified Diff: third_party/WebKit/Source/modules/payments/PaymentTestHelper.cpp

Issue 2502413004: WTF/std normalization: replace WTF::Vector::last with ::back (Closed)
Patch Set: rebase Created 4 years, 1 month 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: third_party/WebKit/Source/modules/payments/PaymentTestHelper.cpp
diff --git a/third_party/WebKit/Source/modules/payments/PaymentTestHelper.cpp b/third_party/WebKit/Source/modules/payments/PaymentTestHelper.cpp
index c42805d6137384da5293b6cf0f9d1fc369df4f97..e9d25f51cc14e5113de6a172f69255e19d28a5e1 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentTestHelper.cpp
+++ b/third_party/WebKit/Source/modules/payments/PaymentTestHelper.cpp
@@ -189,20 +189,20 @@ PaymentRequestMockFunctionScope::~PaymentRequestMockFunctionScope() {
v8::Local<v8::Function> PaymentRequestMockFunctionScope::expectCall(
String* captor) {
m_mockFunctions.append(new MockFunction(m_scriptState, captor));
- EXPECT_CALL(*m_mockFunctions.last(), call(testing::_));
- return m_mockFunctions.last()->bind();
+ EXPECT_CALL(*m_mockFunctions.back(), call(testing::_));
+ return m_mockFunctions.back()->bind();
}
v8::Local<v8::Function> PaymentRequestMockFunctionScope::expectCall() {
m_mockFunctions.append(new MockFunction(m_scriptState));
- EXPECT_CALL(*m_mockFunctions.last(), call(testing::_));
- return m_mockFunctions.last()->bind();
+ EXPECT_CALL(*m_mockFunctions.back(), call(testing::_));
+ return m_mockFunctions.back()->bind();
}
v8::Local<v8::Function> PaymentRequestMockFunctionScope::expectNoCall() {
m_mockFunctions.append(new MockFunction(m_scriptState));
- EXPECT_CALL(*m_mockFunctions.last(), call(testing::_)).Times(0);
- return m_mockFunctions.last()->bind();
+ EXPECT_CALL(*m_mockFunctions.back(), call(testing::_)).Times(0);
+ return m_mockFunctions.back()->bind();
}
ACTION_P(SaveValueIn, captor) {

Powered by Google App Engine
This is Rietveld 408576698