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

Unified Diff: chrome/common/cloud_print/test_cloud_print_utils.h

Issue 11038063: Support chrome_to_mobile job receiving Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix format Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
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_
« no previous file with comments | « chrome/common/cloud_print/cloud_print_helpers_unittest.cc ('k') | chrome/common/cloud_print/test_cloud_print_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698