OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "base/file_util.h" | 5 #include "base/files/file_util.h" |
6 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
7 #include "base/sha1.h" | 7 #include "base/sha1.h" |
8 #include "chrome/utility/cloud_print/bitmap_image.h" | 8 #include "chrome/utility/cloud_print/bitmap_image.h" |
9 #include "chrome/utility/cloud_print/pwg_encoder.h" | 9 #include "chrome/utility/cloud_print/pwg_encoder.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 | 11 |
12 namespace cloud_print { | 12 namespace cloud_print { |
13 | 13 |
14 namespace { | 14 namespace { |
15 | 15 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 header_info.dpi = kRasterDPI; | 70 header_info.dpi = kRasterDPI; |
71 header_info.total_pages = 1; | 71 header_info.total_pages = 1; |
72 | 72 |
73 encoder.EncodeDocumentHeader(&output); | 73 encoder.EncodeDocumentHeader(&output); |
74 encoder.EncodePage(*image, header_info, &output); | 74 encoder.EncodePage(*image, header_info, &output); |
75 | 75 |
76 EXPECT_EQ(kPWGFileSha1, base::SHA1HashString(output)); | 76 EXPECT_EQ(kPWGFileSha1, base::SHA1HashString(output)); |
77 } | 77 } |
78 | 78 |
79 } // namespace cloud_print | 79 } // namespace cloud_print |
OLD | NEW |