Commit f452e2b6 authored by Takuto Ikuta's avatar Takuto Ikuta Committed by Commit Bot

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=grt@chromium.org

Bug: 681136
Change-Id: I29dd163da1243fb036c9a828210ce5c3a3a9f444
Reviewed-on: https://chromium-review.googlesource.com/c/1288337Reviewed-by: default avatarGreg Thompson <grt@chromium.org>
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
Cr-Commit-Position: refs/heads/master@{#600721}
parent 9f370484
......@@ -178,7 +178,7 @@ TEST_F(BufferSourceTest, GetUleb128) {
constexpr uint32_t kUnInit = 0xCCCCCCCC; // Arbitrary value.
constexpr Result kBad{false, kUnInit, 0U};
auto run = [kUnInit](const std::string hex_string) -> Result {
auto run = [](const std::string hex_string) -> Result {
std::vector<uint8_t> bytes = ParseHexString(hex_string);
BufferSource source(ConstBufferView{bytes.data(), bytes.size()});
BufferSource::iterator base = source.begin();
......@@ -237,7 +237,7 @@ TEST_F(BufferSourceTest, GetSleb128) {
constexpr int32_t kUnInit = 0xCCCCCCCC; // Arbitrary value.
constexpr Result kBad{false, kUnInit, 0U};
auto run = [kUnInit](const std::string hex_string) -> Result {
auto run = [](const std::string hex_string) -> Result {
std::vector<uint8_t> bytes = ParseHexString(hex_string);
BufferSource source(ConstBufferView{bytes.data(), bytes.size()});
BufferSource::iterator base = source.begin();
......
......@@ -116,8 +116,7 @@ TEST(PatchUtilsTest, DecodeVarUInt32Malformed) {
// written to.
uint32_t value = uint32_t(-1);
auto TestDecodeVarInt = [&value,
kUninit](const std::vector<uint8_t>& buffer) {
auto TestDecodeVarInt = [&value](const std::vector<uint8_t>& buffer) {
value = kUninit;
return DecodeVarUInt(buffer.begin(), buffer.end(), &value);
};
......@@ -148,8 +147,7 @@ TEST(PatchUtilsTest, DecodeVarUInt64Malformed) {
constexpr uint64_t kUninit = static_cast<uint64_t>(-1);
uint64_t value = kUninit;
auto TestDecodeVarInt = [&value,
kUninit](const std::vector<uint8_t>& buffer) {
auto TestDecodeVarInt = [&value](const std::vector<uint8_t>& buffer) {
value = kUninit;
return DecodeVarUInt(buffer.begin(), buffer.end(), &value);
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment