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_ |