// Copyright 2015 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #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" namespace safe_browsing { class MockIncidentReceiver : public IncidentReceiver { … }; // An action that passes ownership of the incident in |arg0| to |recipient|. ACTION_P(TakeIncident, recipient) { … } // An action that passes ownership of the incident in |arg0| to the vector in // |incidents|. ACTION_P(TakeIncidentToVector, incidents) { … } } // namespace safe_browsing #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_MOCK_INCIDENT_RECEIVER_H_