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

Unified Diff: device/generic_sensor/platform_sensor_and_provider_unittest_linux.cc

Issue 2639883006: Fix unused lambda captures in //device and //services/media_capture. (Closed)
Patch Set: constexpr -> static const Created 3 years, 11 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
« no previous file with comments | « no previous file | services/video_capture/test/fake_device_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/generic_sensor/platform_sensor_and_provider_unittest_linux.cc
diff --git a/device/generic_sensor/platform_sensor_and_provider_unittest_linux.cc b/device/generic_sensor/platform_sensor_and_provider_unittest_linux.cc
index 5e89b40ce05dc8c057a7da7c66bdc0b5e1947f16..8cfc5677974aa22f35d639580f37654169681abd 100644
--- a/device/generic_sensor/platform_sensor_and_provider_unittest_linux.cc
+++ b/device/generic_sensor/platform_sensor_and_provider_unittest_linux.cc
@@ -221,15 +221,14 @@ class PlatformSensorAndProviderLinuxTest : public ::testing::Test {
// calling udev methods.
void InitializeMockUdevMethods(const base::FilePath& sensor_dir) {
ON_CALL(*manager_, GetUdevDeviceGetSubsystem(IsNull()))
- .WillByDefault(Invoke([this](udev_device* dev) { return "iio"; }));
+ .WillByDefault(Invoke([](udev_device* dev) { return "iio"; }));
ON_CALL(*manager_, GetUdevDeviceGetSyspath(IsNull()))
.WillByDefault(Invoke(
[sensor_dir](udev_device* dev) { return sensor_dir.value(); }));
ON_CALL(*manager_, GetUdevDeviceGetDevnode(IsNull()))
- .WillByDefault(
- Invoke([this](udev_device* dev) { return "/dev/test"; }));
+ .WillByDefault(Invoke([](udev_device* dev) { return "/dev/test"; }));
ON_CALL(*manager_, GetUdevDeviceGetSysattrValue(IsNull(), _))
.WillByDefault(Invoke(
« no previous file with comments | « no previous file | services/video_capture/test/fake_device_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698