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

Unified Diff: chrome/browser/net/quota_policy_channel_id_store_unittest.cc

Issue 2095523002: Make //crypto factories return std::unique_ptr<>s (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comment Created 4 years, 6 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/net/quota_policy_channel_id_store_unittest.cc
diff --git a/chrome/browser/net/quota_policy_channel_id_store_unittest.cc b/chrome/browser/net/quota_policy_channel_id_store_unittest.cc
index 4c91d8fb7bd21eefa63e503eba0abe66b75a665a..7131995e2f7140bd19c9005894d9035f3b785f05 100644
--- a/chrome/browser/net/quota_policy_channel_id_store_unittest.cc
+++ b/chrome/browser/net/quota_policy_channel_id_store_unittest.cc
@@ -84,11 +84,9 @@ TEST_F(QuotaPolicyChannelIDStoreTest, TestPersistence) {
crypto::ECPrivateKey::Create());
std::unique_ptr<crypto::ECPrivateKey> foo_key(crypto::ECPrivateKey::Create());
store_->AddChannelID(net::DefaultChannelIDStore::ChannelID(
- "google.com", base::Time::FromInternalValue(1),
- base::WrapUnique(goog_key->Copy())));
+ "google.com", base::Time::FromInternalValue(1), goog_key->Copy()));
store_->AddChannelID(net::DefaultChannelIDStore::ChannelID(
- "foo.com", base::Time::FromInternalValue(3),
- base::WrapUnique(foo_key->Copy())));
+ "foo.com", base::Time::FromInternalValue(3), foo_key->Copy()));
std::vector<std::unique_ptr<net::DefaultChannelIDStore::ChannelID>>
channel_ids;
@@ -143,10 +141,10 @@ TEST_F(QuotaPolicyChannelIDStoreTest, TestPersistence) {
TEST_F(QuotaPolicyChannelIDStoreTest, TestPolicy) {
store_->AddChannelID(net::DefaultChannelIDStore::ChannelID(
"google.com", base::Time::FromInternalValue(1),
- base::WrapUnique(crypto::ECPrivateKey::Create())));
+ crypto::ECPrivateKey::Create()));
store_->AddChannelID(net::DefaultChannelIDStore::ChannelID(
"nonpersistent.com", base::Time::FromInternalValue(3),
- base::WrapUnique(crypto::ECPrivateKey::Create())));
+ crypto::ECPrivateKey::Create()));
std::vector<std::unique_ptr<net::DefaultChannelIDStore::ChannelID>>
channel_ids;
@@ -176,10 +174,10 @@ TEST_F(QuotaPolicyChannelIDStoreTest, TestPolicy) {
// being committed to disk.
store_->AddChannelID(net::DefaultChannelIDStore::ChannelID(
"nonpersistent.com", base::Time::FromInternalValue(5),
- base::WrapUnique(crypto::ECPrivateKey::Create())));
+ crypto::ECPrivateKey::Create()));
store_->AddChannelID(net::DefaultChannelIDStore::ChannelID(
"persistent.com", base::Time::FromInternalValue(7),
- base::WrapUnique(crypto::ECPrivateKey::Create())));
+ crypto::ECPrivateKey::Create()));
// Now close the store, and the nonpersistent.com channel IDs should be
// deleted according to policy.

Powered by Google App Engine
This is Rietveld 408576698