OLD | NEW |
(Empty) | |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_COMMON_CLOUD_PRINT_TEST_CLOUD_PRINT_UTILS_H_ |
| 6 #define CHROME_COMMON_CLOUD_PRINT_TEST_CLOUD_PRINT_UTILS_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 namespace cloud_print { |
| 11 |
| 12 // Return a success fetch response data with jobs with the given job strings. |
| 13 // |job_num| is the number of jobs. |
| 14 std::string GenerateFetchSuccessResponseWithJobStrings(size_t job_num ...); |
| 15 |
| 16 // Return a success fetch response data with jobs with the given job ids. |
| 17 // |job_num| is the number of jobs. |
| 18 std::string GenerateFetchSuccessResponseWithJobIds(size_t job_num ...); |
| 19 |
| 20 // Returns a registration response with the given |succeed| and |printer_id|. |
| 21 std::string GenerateRegistrationResponse(const bool& succeed, |
| 22 const std::string& printer_id); |
| 23 |
| 24 // Return a success fetch response data with jobs with the given printer ids. |
| 25 // |job_num| is the number of printers. |
| 26 std::string GenerateListResponseWithPrinterIds(size_t printer_num ...); |
| 27 |
| 28 } // namespace cloud_print |
| 29 |
| 30 #endif // CHROME_COMMON_CLOUD_PRINT_TEST_CLOUD_PRINT_UTILS_H_ |
OLD | NEW |