printing_context_factory_for_test.h 634 B

1234567891011121314151617181920212223
  1. // Copyright 2021 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 PRINTING_PRINTING_CONTEXT_FACTORY_FOR_TEST_H_
  5. #define PRINTING_PRINTING_CONTEXT_FACTORY_FOR_TEST_H_
  6. #include <memory>
  7. #include "printing/printing_context.h"
  8. namespace printing {
  9. class PrintingContextFactoryForTest {
  10. public:
  11. virtual std::unique_ptr<PrintingContext> CreatePrintingContext(
  12. PrintingContext::Delegate* delegate,
  13. bool skip_system_calls) = 0;
  14. };
  15. } // namespace printing
  16. #endif // PRINTING_PRINTING_CONTEXT_FACTORY_FOR_TEST_H_