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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/mock_incident_receiver.h

Issue 1870003002: Convert //chrome/browser/safe_browsing from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and address comments Created 4 years, 8 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
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 6fb8cb676fdbc2af9798fdf1ba8ab2a14dc31b08..77a79d5767ab1a03209c60a22c89ec8e2580ca25 100644
--- a/chrome/browser/safe_browsing/incident_reporting/mock_incident_receiver.h
+++ b/chrome/browser/safe_browsing/incident_reporting/mock_incident_receiver.h
@@ -17,21 +17,22 @@ class MockIncidentReceiver : public IncidentReceiver {
MockIncidentReceiver();
~MockIncidentReceiver();
- MOCK_METHOD2(DoAddIncidentForProfile, void(Profile*, scoped_ptr<Incident>*));
- MOCK_METHOD1(DoAddIncidentForProcess, void(scoped_ptr<Incident>*));
- MOCK_METHOD1(DoClearIncidentForProcess, void(scoped_ptr<Incident>*));
+ MOCK_METHOD2(DoAddIncidentForProfile,
+ void(Profile*, std::unique_ptr<Incident>*));
+ MOCK_METHOD1(DoAddIncidentForProcess, void(std::unique_ptr<Incident>*));
+ MOCK_METHOD1(DoClearIncidentForProcess, void(std::unique_ptr<Incident>*));
protected:
void AddIncidentForProfile(Profile* profile,
- scoped_ptr<Incident> incident) override {
+ std::unique_ptr<Incident> incident) override {
DoAddIncidentForProfile(profile, &incident);
}
- void AddIncidentForProcess(scoped_ptr<Incident> incident) override {
+ void AddIncidentForProcess(std::unique_ptr<Incident> incident) override {
DoAddIncidentForProcess(&incident);
}
- void ClearIncidentForProcess(scoped_ptr<Incident> incident) override {
+ void ClearIncidentForProcess(std::unique_ptr<Incident> incident) override {
DoClearIncidentForProcess(&incident);
}
};

Powered by Google App Engine
This is Rietveld 408576698