Home
last modified time | relevance | path

Searched refs:RemovePrinterFromCups (Results 1 - 8 of 8) sorted by relevance

/base/print/print_fwk/test/unittest/fwk_vendor_manager_test/mock/
H A Dmock_vendor_manager.h30 MOCK_METHOD2(RemovePrinterFromCups, int32_t (const std::string &, const std::string &));
/base/print/print_fwk/services/print_service/include/
H A Dvendor_bsuni_driver.h31 static int32_t RemovePrinterFromCups(const char *printerId);
H A Dvendor_driver_base.h52 virtual int32_t RemovePrinterFromCups(const std::string &vendorName, const std::string &printerId) = 0;
H A Dvendor_manager.h66 int32_t RemovePrinterFromCups(const std::string &vendorName, const std::string &printerId) override;
/base/print/print_fwk/test/unittest/fwk_vendor_manager_test/
H A Dvendor_bsuni_driver_test.cpp265 EXPECT_EQ(VendorBsuniDriver::RemovePrinterFromCups(nullptr), EXTENSION_INVALID_PARAMETER); in HWTEST_F()
270 EXPECT_EQ(VendorBsuniDriver::RemovePrinterFromCups(PRINTER_TEST_IP.c_str()), EXTENSION_ERROR_CALLBACK_NULL); in HWTEST_F()
348 EXPECT_CALL(mockManager, RemovePrinterFromCups(_, _)).WillRepeatedly(Return(0)); in HWTEST_F()
353 EXPECT_EQ(VendorBsuniDriver::RemovePrinterFromCups(nullptr), EXTENSION_INVALID_PARAMETER); in HWTEST_F()
355 EXPECT_EQ(VendorBsuniDriver::RemovePrinterFromCups(printerIp.c_str()), EXTENSION_ERROR_NONE); in HWTEST_F()
H A Dvendor_manager_test.cpp184 EXPECT_EQ(vendorManager.RemovePrinterFromCups("", ""), EXTENSION_ERROR_CALLBACK_FAIL); in HWTEST_F()
230 EXPECT_EQ(vendorManager.RemovePrinterFromCups(vendorName, PRINTER_TEST_IP), EXTENSION_ERROR_CALLBACK_FAIL); in HWTEST_F()
231 EXPECT_EQ(vendorManager.RemovePrinterFromCups(vendorName, PRINTER_TEST_IP), EXTENSION_ERROR_NONE); in HWTEST_F()
/base/print/print_fwk/services/print_service/src/
H A Dvendor_bsuni_driver.cpp147 int32_t VendorBsuniDriver::RemovePrinterFromCups(const char *printerId) in RemovePrinterFromCups() function in VendorBsuniDriver
149 PRINT_HILOGI("BsUni callback RemovePrinterFromCups"); in RemovePrinterFromCups()
160 return g_driverWrapper->vendorManager->RemovePrinterFromCups(g_driverWrapper->GetVendorName(), vendorPrinterId); in RemovePrinterFromCups()
242 printServiceAbility.removePrinterFromCups = RemovePrinterFromCups; in OnCreate()
H A Dvendor_manager.cpp298 int32_t VendorManager::RemovePrinterFromCups(const std::string &vendorName, const std::string &printerId) in RemovePrinterFromCups() function in VendorManager
300 PRINT_HILOGI("RemovePrinterFromCups enter"); in RemovePrinterFromCups()
307 PRINT_HILOGW("RemovePrinterFromCups fail"); in RemovePrinterFromCups()
310 PRINT_HILOGI("RemovePrinterFromCups quit"); in RemovePrinterFromCups()

Completed in 4 milliseconds