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

Unified Diff: chrome/browser/chrome_to_mobile/receive/testing_chrome_to_mobile_receive.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/browser/chrome_to_mobile/receive/testing_chrome_to_mobile_receive.h
diff --git a/chrome/browser/chrome_to_mobile/receive/testing_chrome_to_mobile_receive.h b/chrome/browser/chrome_to_mobile/receive/testing_chrome_to_mobile_receive.h
new file mode 100644
index 0000000000000000000000000000000000000000..bfbef3b536833a7b34a81fce983d1b9677d396f3
--- /dev/null
+++ b/chrome/browser/chrome_to_mobile/receive/testing_chrome_to_mobile_receive.h
@@ -0,0 +1,40 @@
+// 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_BROWSER_CHROME_TO_MOBILE_RECEIVE_TESTING_CHROME_TO_MOBILE_RECEIVE_H_
+#define CHROME_BROWSER_CHROME_TO_MOBILE_RECEIVE_TESTING_CHROME_TO_MOBILE_RECEIVE_H_
+
+#include "base/message_loop.h"
+#include "base/message_loop_proxy.h"
+#include "base/memory/scoped_ptr.h"
+#include "chrome/browser/chrome_to_mobile/common/cloud_print_request.h"
+#include "chrome/browser/chrome_to_mobile/common/test_cloud_print_request_factory.h"
+#include "googleurl/src/gurl.h"
+#include "testing/gtest/include/gtest/gtest.h"
+
+namespace content {
+class TestBrowserThread;
+} // namespace content
+
+namespace net {
+class URLRequestContextGetter;
+} // namespace net
+
+// Base class for testing chrome-to-mobile receive classes.
+class ChromeToMobileReceiveTest : public testing::Test {
+ public:
+ ChromeToMobileReceiveTest();
+ virtual ~ChromeToMobileReceiveTest();
+
+ virtual void SetUp() OVERRIDE;
+
+ protected:
+ MessageLoop test_loop_;
+ scoped_ptr<content::TestBrowserThread> test_thread_;
+ chrome_to_mobile::TestCloudPrintRequestFactory factory_;
+ GURL cloud_print_server_url_;
+ scoped_refptr<net::URLRequestContextGetter> request_context_getter_;
+ chrome_to_mobile::CloudPrintRequest::Settings settings_;
+};
+
+#endif // CHROME_BROWSER_CHROME_TO_MOBILE_RECEIVE_TESTING_CHROME_TO_MOBILE_RECEIVE_H_

Powered by Google App Engine
This is Rietveld 408576698