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

Unified Diff: extensions/browser/content_hash_fetcher_unittest.cc

Issue 2790823004: Retry reinstallation of corrupted policy extensions. (Closed)
Patch Set: address comments Created 3 years, 9 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
« no previous file with comments | « chrome/test/BUILD.gn ('k') | extensions/browser/content_verifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/content_hash_fetcher_unittest.cc
diff --git a/extensions/browser/content_hash_fetcher_unittest.cc b/extensions/browser/content_hash_fetcher_unittest.cc
index 4323d7a9ada38c105647a4a95a9c4ea26c80d361..2d01fb1fa7c9a4761b89c54d83d08e190b9f357e 100644
--- a/extensions/browser/content_hash_fetcher_unittest.cc
+++ b/extensions/browser/content_hash_fetcher_unittest.cc
@@ -85,6 +85,9 @@ class ContentHashFetcherWaiter {
// Used in setting up the behavior of our ContentHashFetcher.
class MockDelegate : public ContentVerifierDelegate {
public:
+ MockDelegate() {}
+ ~MockDelegate() override {}
+
ContentVerifierDelegate::Mode ShouldBeVerified(
const Extension& extension) override {
return ContentVerifierDelegate::ENFORCE_STRICT;
@@ -113,6 +116,11 @@ class MockDelegate : public ContentVerifierDelegate {
ContentVerifyJob::FailureReason reason) override {
ADD_FAILURE() << "Unexpected call for this test";
}
+
+ void Shutdown() override {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MockDelegate);
};
class ContentHashFetcherTest : public ExtensionsTest {
« no previous file with comments | « chrome/test/BUILD.gn ('k') | extensions/browser/content_verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698