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

Unified Diff: chrome/browser/chromeos/printing/printer_pref_manager_unittest.cc

Issue 2618313004: [CUPS] Implement the enterprise icon for printers in Print Preview Dialog. (Closed)
Patch Set: Address dpapad@'s comments. Created 3 years, 11 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/browser/browser_resources.grd ('k') | chrome/browser/resources/print_preview/data/destination.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/printing/printer_pref_manager_unittest.cc
diff --git a/chrome/browser/chromeos/printing/printer_pref_manager_unittest.cc b/chrome/browser/chromeos/printing/printer_pref_manager_unittest.cc
index 4b02a7451869dc38c7fd5706232b1a71a936a940..11ec115b51de8dd4699048f32cb85496bbc2d952 100644
--- a/chrome/browser/chromeos/printing/printer_pref_manager_unittest.cc
+++ b/chrome/browser/chromeos/printing/printer_pref_manager_unittest.cc
@@ -47,6 +47,7 @@ TEST(PrinterPrefManagerTest, AddPrinter) {
auto printers = manager->GetPrinters();
ASSERT_EQ(1U, printers.size());
EXPECT_EQ(kPrinterId, printers[0]->id());
+ EXPECT_EQ(Printer::Source::SRC_USER_PREFS, printers[0]->source());
}
TEST(PrinterPrefManagerTest, UpdatePrinterAssignsId) {
@@ -132,6 +133,7 @@ TEST(PrinterPrefManagerTest, RecommendedPrinters) {
ASSERT_EQ(2U, printers.size());
EXPECT_EQ("Color Laser", printers[0]->display_name());
EXPECT_EQ("ipp://192.168.1.5", printers[1]->uri());
+ EXPECT_EQ(Printer::Source::SRC_POLICY, printers[1]->source());
}
TEST(PrinterPrefManagerTest, GetRecommendedPrinter) {
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/resources/print_preview/data/destination.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698