Commit d27e6b85 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=peria@chromium.org

Bug: 681136
Change-Id: I9dce2f01375277b9f471e65d30479ec91689e478
Reviewed-on: https://chromium-review.googlesource.com/c/1288496Reviewed-by: default avatarYuki Shiino <yukishiino@chromium.org>
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
Cr-Commit-Position: refs/heads/master@{#600691}
parent 8b8f54d7
...@@ -112,7 +112,7 @@ TEST_F(RuntimeCallStatsTest, CountAndTimeAreUpdatedAfterMultipleExecutions) { ...@@ -112,7 +112,7 @@ TEST_F(RuntimeCallStatsTest, CountAndTimeAreUpdatedAfterMultipleExecutions) {
const unsigned loops = 5; const unsigned loops = 5;
RuntimeCallStatsTest* test = this; RuntimeCallStatsTest* test = this;
auto func = [&stats, func_duration, test]() { auto func = [&stats, test]() {
RuntimeCallTimer timer(test->clock()); RuntimeCallTimer timer(test->clock());
stats.Enter(&timer, test_counter_1_id); stats.Enter(&timer, test_counter_1_id);
test->AdvanceClock(func_duration); test->AdvanceClock(func_duration);
...@@ -135,14 +135,14 @@ TEST_F(RuntimeCallStatsTest, NestedTimersTest) { ...@@ -135,14 +135,14 @@ TEST_F(RuntimeCallStatsTest, NestedTimersTest) {
const unsigned outer_func_duration = 20; const unsigned outer_func_duration = 20;
RuntimeCallStatsTest* test = this; RuntimeCallStatsTest* test = this;
auto inner_func = [&stats, inner_func_duration, test]() { auto inner_func = [&stats, test]() {
RuntimeCallTimer timer(test->clock()); RuntimeCallTimer timer(test->clock());
stats.Enter(&timer, test_counter_2_id); stats.Enter(&timer, test_counter_2_id);
test->AdvanceClock(inner_func_duration); test->AdvanceClock(inner_func_duration);
stats.Leave(&timer); stats.Leave(&timer);
}; };
auto outer_func = [&stats, &inner_func, outer_func_duration, test]() { auto outer_func = [&stats, &inner_func, test]() {
RuntimeCallTimer timer(test->clock()); RuntimeCallTimer timer(test->clock());
stats.Enter(&timer, test_counter_1_id); stats.Enter(&timer, test_counter_1_id);
inner_func(); inner_func();
......
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