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

Side by Side Diff: chromeos/printing/printer_translator_unittest.cc

Issue 2975013002: Make chromeos CUPS printing code namespaces consistent. (Closed)
Patch Set: Rebase Created 3 years, 5 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 unified diff | Download patch
« no previous file with comments | « chromeos/printing/printer_translator.cc ('k') | chromeos/printing/printing_constants.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <utility> 5 #include <utility>
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "base/test/values_test_util.h" 8 #include "base/test/values_test_util.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "chromeos/printing/printer_configuration.h" 11 #include "chromeos/printing/printer_configuration.h"
12 #include "chromeos/printing/printer_translator.h" 12 #include "chromeos/printing/printer_translator.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 namespace chromeos { 15 namespace chromeos {
16 namespace printing {
17 16
18 // Printer test data 17 // Printer test data
19 const char kHash[] = "ABCDEF123456"; 18 const char kHash[] = "ABCDEF123456";
20 const char kName[] = "Chrome Super Printer"; 19 const char kName[] = "Chrome Super Printer";
21 const char kDescription[] = "first star on the left"; 20 const char kDescription[] = "first star on the left";
22 const char kUri[] = "ipp://printy.domain.co:555/ipp/print"; 21 const char kUri[] = "ipp://printy.domain.co:555/ipp/print";
23 const char kUUID[] = "UUID-UUID-UUID"; 22 const char kUUID[] = "UUID-UUID-UUID";
24 23
25 const char kMake[] = "Chrome"; 24 const char kMake[] = "Chrome";
26 const char kModel[] = "Inktastic Laser Magic"; 25 const char kModel[] = "Inktastic Laser Magic";
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 preference.SetString("ppd_resource.effective_model", kEffectiveMakeAndModel); 153 preference.SetString("ppd_resource.effective_model", kEffectiveMakeAndModel);
155 154
156 std::unique_ptr<Printer> printer = 155 std::unique_ptr<Printer> printer =
157 RecommendedPrinterToPrinter(preference, kTimestamp); 156 RecommendedPrinterToPrinter(preference, kTimestamp);
158 EXPECT_TRUE(printer); 157 EXPECT_TRUE(printer);
159 158
160 EXPECT_EQ(kMake, printer->manufacturer()); 159 EXPECT_EQ(kMake, printer->manufacturer());
161 EXPECT_EQ(kMake, printer->make_and_model()); 160 EXPECT_EQ(kMake, printer->make_and_model());
162 } 161 }
163 162
164 } // namespace printing
165 } // namespace chromeos 163 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/printing/printer_translator.cc ('k') | chromeos/printing/printing_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698