scoped_ignore_content_verifier_for_test.h 964 B

123456789101112131415161718192021222324252627
  1. // Copyright 2016 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef EXTENSIONS_BROWSER_SCOPED_IGNORE_CONTENT_VERIFIER_FOR_TEST_H_
  5. #define EXTENSIONS_BROWSER_SCOPED_IGNORE_CONTENT_VERIFIER_FOR_TEST_H_
  6. namespace extensions {
  7. // A class for use in tests to make content verification failures be ignored
  8. // during the lifetime of an instance of it. Note that only one instance should
  9. // be alive at any given time.
  10. class ScopedIgnoreContentVerifierForTest {
  11. public:
  12. ScopedIgnoreContentVerifierForTest();
  13. ScopedIgnoreContentVerifierForTest(
  14. const ScopedIgnoreContentVerifierForTest&) = delete;
  15. ScopedIgnoreContentVerifierForTest& operator=(
  16. const ScopedIgnoreContentVerifierForTest&) = delete;
  17. ~ScopedIgnoreContentVerifierForTest();
  18. };
  19. } // namespace extensions
  20. #endif // EXTENSIONS_BROWSER_SCOPED_IGNORE_CONTENT_VERIFIER_FOR_TEST_H_