#include "printing/backend/cups_helper.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/scoped_environment_variable_override.h"
#include "base/strings/stringprintf.h"
#include "build/build_config.h"
#include "printing/backend/print_backend.h"
#include "printing/mojom/print.mojom.h"
#include "printing/print_settings.h"
#include "printing/printing_utils.h"
#include "printing/units.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace printing {
namespace {
bool PapersEqual(const PrinterSemanticCapsAndDefaults::Paper& lhs,
const PrinterSemanticCapsAndDefaults::Paper& rhs) { … }
void VerifyCapabilityColorModels(const PrinterSemanticCapsAndDefaults& caps) { … }
std::string GeneratePpdResolutionTestData(const char* res_name) { … }
}
TEST(PrintBackendCupsHelperTest, PpdParsingNoColorDuplexShortEdge) { … }
TEST(PrintBackendCupsHelperTest, PpdParsingNoColorDuplexSimples) { … }
TEST(PrintBackendCupsHelperTest, PpdParsingNoColorNoDuplex) { … }
TEST(PrintBackendCupsHelperTest, PpdParsingColorTrueDuplexShortEdge) { … }
TEST(PrintBackendCupsHelperTest, PpdParsingColorFalseDuplexLongEdge) { … }
TEST(PrintBackendCupsHelperTest, PpdParsingPageSize) { … }
TEST(PrintBackendCupsHelperTest, PpdParsingPageSizeNoDefaultSpecified) { … }
TEST(PrintBackendCupsHelperTest, PpdParsingPrintableArea) { … }
TEST(PrintBackendCupsHelperTest, PpdParsingBrotherPrinters) { … }
TEST(PrintBackendCupsHelperTest, PpdParsingHpPrinters) { … }
TEST(PrintBackendCupsHelperTest, PpdParsingCanonPrinters) { … }
TEST(PrintBackendCupsHelperTest, PpdParsingEpsonPrinters) { … }
TEST(PrintBackendCupsHelperTest, PpdParsingKonicaMinoltaPrinters) { … }
TEST(PrintBackendCupsHelperTest, PpdParsingLexmarkPrinters) { … }
TEST(PrintBackendCupsHelperTest, PpdParsingOkiPrinters) { … }
TEST(PrintBackendCupsHelperTest, PpdParsingSamsungPrinters) { … }
TEST(PrintBackendCupsHelperTest, PpdParsingSharpPrinters) { … }
TEST(PrintBackendCupsHelperTest, PpdParsingXeroxPrinters) { … }
TEST(PrintBackendCupsHelperTest, PpdParsingCupsMaxCopies) { … }
TEST(PrintBackendCupsHelperTest, PpdParsingResolutionTagNames) { … }
TEST(PrintBackendCupsHelperTest, PpdParsingResolutionInvalidDefaultResolution) { … }
TEST(PrintBackendCupsHelperTest,
PpdParsingResolutionStandaloneDefaultResolution) { … }
TEST(PrintBackendCupsHelperTest, PpdParsingResolutionNoResolution) { … }
TEST(PrintBackendCupsHelperTest, PpdParsingResolutionNoDefaultResolution) { … }
TEST(PrintBackendCupsHelperTest, PpdParsingResolutionDpiFormat) { … }
TEST(PrintBackendCupsHelperTest, PpdSetsDestOptions) { … }
TEST(PrintBackendCupsHelperTest, NoTempFileLeftBehind) { … }
}