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

Unified Diff: components/data_reduction_proxy/core/common/data_reduction_proxy_event_storage_delegate_test_utils.h

Issue 1873263002: Convert //components/data_reduction_proxy from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address feedback 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: components/data_reduction_proxy/core/common/data_reduction_proxy_event_storage_delegate_test_utils.h
diff --git a/components/data_reduction_proxy/core/common/data_reduction_proxy_event_storage_delegate_test_utils.h b/components/data_reduction_proxy/core/common/data_reduction_proxy_event_storage_delegate_test_utils.h
index 3f1fab745ff85914edbc86cc1504819f2c043bd7..795defcc29bb65c6dbf4819572654182b4b0ebf0 100644
--- a/components/data_reduction_proxy/core/common/data_reduction_proxy_event_storage_delegate_test_utils.h
+++ b/components/data_reduction_proxy/core/common/data_reduction_proxy_event_storage_delegate_test_utils.h
@@ -5,11 +5,11 @@
#ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_EVENT_STORE_TEST_UTILS_H_
#define COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_EVENT_STORE_TEST_UTILS_H_
-#include "components/data_reduction_proxy/core/common/data_reduction_proxy_event_storage_delegate.h"
-
#include <stdint.h>
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
+#include "components/data_reduction_proxy/core/common/data_reduction_proxy_event_storage_delegate.h"
namespace base {
class Value;
@@ -28,11 +28,12 @@ class TestDataReductionProxyEventStorageDelegate
void SetStorageDelegate(DataReductionProxyEventStorageDelegate* delegate);
// Overrides of DataReductionProxyEventStorageDelegate:
- void AddEvent(scoped_ptr<base::Value> event) override;
- void AddEnabledEvent(scoped_ptr<base::Value> event, bool enabled) override;
- void AddAndSetLastBypassEvent(scoped_ptr<base::Value> event,
+ void AddEvent(std::unique_ptr<base::Value> event) override;
+ void AddEnabledEvent(std::unique_ptr<base::Value> event,
+ bool enabled) override;
+ void AddAndSetLastBypassEvent(std::unique_ptr<base::Value> event,
int64_t expiration_ticks) override;
- void AddEventAndSecureProxyCheckState(scoped_ptr<base::Value> event,
+ void AddEventAndSecureProxyCheckState(std::unique_ptr<base::Value> event,
SecureProxyCheckState state) override;
private:

Powered by Google App Engine
This is Rietveld 408576698