| Index: chrome/browser/safe_browsing/incident_reporting/mock_incident_receiver.h
|
| diff --git a/chrome/browser/safe_browsing/incident_reporting/mock_incident_receiver.h b/chrome/browser/safe_browsing/incident_reporting/mock_incident_receiver.h
|
| index 36bebe7710e6afc695e2c4bdd3aa5c9e9e6f376e..6fb8cb676fdbc2af9798fdf1ba8ab2a14dc31b08 100644
|
| --- a/chrome/browser/safe_browsing/incident_reporting/mock_incident_receiver.h
|
| +++ b/chrome/browser/safe_browsing/incident_reporting/mock_incident_receiver.h
|
| @@ -5,6 +5,8 @@
|
| #ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_MOCK_INCIDENT_RECEIVER_H_
|
| #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_MOCK_INCIDENT_RECEIVER_H_
|
|
|
| +#include <utility>
|
| +
|
| #include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h"
|
| #include "testing/gmock/include/gmock/gmock.h"
|
|
|
| @@ -36,13 +38,13 @@ class MockIncidentReceiver : public IncidentReceiver {
|
|
|
| // An action that passes ownership of the incident in |arg0| to |recipient|.
|
| ACTION_P(TakeIncident, recipient) {
|
| - *recipient = arg0->Pass();
|
| + *recipient = std::move(*arg0);
|
| }
|
|
|
| // An action that passes ownership of the incident in |arg0| to the vector in
|
| // |incidents|.
|
| ACTION_P(TakeIncidentToVector, incidents) {
|
| - incidents->push_back(arg0->Pass());
|
| + incidents->push_back(std::move(*arg0));
|
| }
|
|
|
| } // namespace safe_browsing
|
|
|