Index: chrome/common/cloud_print/test_cloud_print_utils.h |
diff --git a/chrome/common/cloud_print/test_cloud_print_utils.h b/chrome/common/cloud_print/test_cloud_print_utils.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..177083d9c7ea5b66aa4c064eeac334aaf1d59d73 |
--- /dev/null |
+++ b/chrome/common/cloud_print/test_cloud_print_utils.h |
@@ -0,0 +1,30 @@ |
+// Copyright 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_COMMON_CLOUD_PRINT_TEST_CLOUD_PRINT_UTILS_H_ |
+#define CHROME_COMMON_CLOUD_PRINT_TEST_CLOUD_PRINT_UTILS_H_ |
+ |
+#include <string> |
+ |
+namespace cloud_print { |
+ |
+// Return a success fetch response data with jobs with the given job strings. |
+// |job_num| is the number of jobs. |
+std::string GenerateFetchSuccessResponseWithJobStrings(size_t job_num ...); |
+ |
+// Return a success fetch response data with jobs with the given job ids. |
+// |job_num| is the number of jobs. |
+std::string GenerateFetchSuccessResponseWithJobIds(size_t job_num ...); |
+ |
+// Returns a registration response with the given |succeed| and |printer_id|. |
+std::string GenerateRegistrationResponse(const bool& succeed, |
+ const std::string& printer_id); |
+ |
+// Return a success fetch response data with jobs with the given printer ids. |
+// |job_num| is the number of printers. |
+std::string GenerateListResponseWithPrinterIds(size_t printer_num ...); |
+ |
+} // namespace cloud_print |
+ |
+#endif // CHROME_COMMON_CLOUD_PRINT_TEST_CLOUD_PRINT_UTILS_H_ |