0

Fix for unused-lambda-capture warning

This CL is part of
https://chromium-review.googlesource.com/c/chromium/src/+/1286017

This CL was uploaded by git cl split.

R=jdoerrie@chromium.org

Bug: 681136
Change-Id: I948c064bed03c801088e96007b641be2412bc6ee
Reviewed-on: https://chromium-review.googlesource.com/c/1288509
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
Commit-Queue: Jan Wilken Dörrie <jdoerrie@chromium.org>
Reviewed-by: Jan Wilken Dörrie <jdoerrie@chromium.org>
Cr-Commit-Position: refs/heads/master@{#600690}
This commit is contained in:
Takuto Ikuta
2018-10-18 08:21:30 +00:00
committed by Commit Bot
parent 81b31d58fe
commit 8b8f54d7a5
2 changed files with 2 additions and 3 deletions

@ -267,8 +267,7 @@ TEST_F(FidoCableDeviceTest, TestCableDeviceFailOnUnexpectedCounter) {
ConnectWithLength(kControlPointLength);
EXPECT_CALL(*connection(), WriteControlPointPtr(_, _))
.WillOnce(Invoke([this, kIncorrectAuthenticatorCounter](const auto& data,
auto* cb) {
.WillOnce(Invoke([this](const auto& data, auto* cb) {
base::SequencedTaskRunnerHandle::Get()->PostTask(
FROM_HERE, base::BindOnce(std::move(*cb), true));

@ -239,7 +239,7 @@ class CableMockAdapter : public MockBluetoothAdapter {
void ExpectDiscoveryWithScanCallback() {
EXPECT_CALL(*this, StartDiscoverySessionWithFilterRaw(_, _, _))
.WillOnce(::testing::WithArg<1>(
[this](const auto& callback) { callback.Run(nullptr); }));
[](const auto& callback) { callback.Run(nullptr); }));
}
void ExpectDiscoveryWithScanCallback(