|
6 | 6 |
|
7 | 7 | #include <memory> |
8 | 8 |
|
| 9 | +#include "base/containers/to_vector.h" |
9 | 10 | #include "base/functional/bind.h" |
10 | 11 | #include "base/memory/raw_ptr.h" |
11 | 12 | #include "base/memory/weak_ptr.h" |
@@ -110,16 +111,10 @@ class FakeHidWriter : public HidWriter { |
110 | 111 | class Dualshock4ControllerTest : public testing::Test { |
111 | 112 | public: |
112 | 113 | Dualshock4ControllerTest() |
113 | | - : usb_start_vibration_report_(kUsbStartVibration, |
114 | | - kUsbStartVibration + kUsbReportLength), |
115 | | - usb_stop_vibration_report_(kUsbStopVibration, |
116 | | - kUsbStopVibration + kUsbReportLength), |
117 | | - bluetooth_start_vibration_report_( |
118 | | - kBtStartVibration, |
119 | | - kBtStartVibration + kBluetoothReportLength), |
120 | | - bluetooth_stop_vibration_report_( |
121 | | - kBtStopVibration, |
122 | | - kBtStopVibration + kBluetoothReportLength), |
| 114 | + : usb_start_vibration_report_(base::ToVector(kUsbStartVibration)), |
| 115 | + usb_stop_vibration_report_(base::ToVector(kUsbStopVibration)), |
| 116 | + bluetooth_start_vibration_report_(base::ToVector(kBtStartVibration)), |
| 117 | + bluetooth_stop_vibration_report_(base::ToVector(kBtStopVibration)), |
123 | 118 | callback_count_(0), |
124 | 119 | callback_result_( |
125 | 120 | mojom::GamepadHapticsResult::GamepadHapticsResultError) { |
|
0 commit comments