&cache_delegate_,
RulesRegistry::WebViewKey(0, 0))) {}
- virtual void SetUp() {
+ void SetUp() override {
env_.GetExtensionPrefs(); // Force creation before adding extensions.
// Note that env_.MakeExtension below also forces the creation of
// ExtensionService.
CHECK_NE(extension2_->id(), extension1_->id());
}
- virtual ~RulesRegistryWithCacheTest() {}
+ ~RulesRegistryWithCacheTest() override {}
std::string AddRule(const std::string& extension_id,
const std::string& rule_id,
scoped_ptr<base::ListValue> value(new base::ListValue);
value->AppendBoolean(true);
- cache_delegate->WriteToStorage(extension1_->id(),
- value.PassAs<base::Value>());
+ cache_delegate->WriteToStorage(extension1_->id(), value.Pass());
EXPECT_TRUE(cache_delegate->GetDeclarativeRulesStored(extension1_->id()));
base::RunLoop().RunUntilIdle();
EXPECT_EQ(write_count + 1, store->write_count());
write_count = store->write_count();
value.reset(new base::ListValue);
- cache_delegate->WriteToStorage(extension1_->id(),
- value.PassAs<base::Value>());
+ cache_delegate->WriteToStorage(extension1_->id(), value.Pass());
EXPECT_FALSE(cache_delegate->GetDeclarativeRulesStored(extension1_->id()));
base::RunLoop().RunUntilIdle();
// No rules currently, but previously there were, so we expect a write.
write_count = store->write_count();
value.reset(new base::ListValue);
- cache_delegate->WriteToStorage(extension1_->id(),
- value.PassAs<base::Value>());
+ cache_delegate->WriteToStorage(extension1_->id(), value.Pass());
EXPECT_FALSE(cache_delegate->GetDeclarativeRulesStored(extension1_->id()));
base::RunLoop().RunUntilIdle();
EXPECT_EQ(write_count, store->write_count());