OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <cups/cups.h> | 5 #include <cups/cups.h> |
6 | 6 |
7 #include <cstring> | 7 #include <cstring> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 it != test_cases.end(); ++it) { | 213 it != test_cases.end(); ++it) { |
214 num_options = 0; | 214 num_options = 0; |
215 options = NULL; | 215 options = NULL; |
216 printing_internal::parse_lpoptions(userLpOptionsFile, it->printer_name, | 216 printing_internal::parse_lpoptions(userLpOptionsFile, it->printer_name, |
217 &num_options, &options); | 217 &num_options, &options); |
218 ASSERT_EQ(num_options, it->expected_option_count); | 218 ASSERT_EQ(num_options, it->expected_option_count); |
219 EXPECT_EQ(num_options != 0, options != NULL); | 219 EXPECT_EQ(num_options != 0, options != NULL); |
220 cupsFreeOptions(num_options, options); | 220 cupsFreeOptions(num_options, options); |
221 } | 221 } |
222 } | 222 } |
OLD | NEW |