Index: chrome/browser/chrome_to_mobile/receive/testing_chrome_to_mobile_receive.cc |
diff --git a/chrome/browser/chrome_to_mobile/receive/testing_chrome_to_mobile_receive.cc b/chrome/browser/chrome_to_mobile/receive/testing_chrome_to_mobile_receive.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7e40d8b0620f315e206d0feb73f02c021078d130 |
--- /dev/null |
+++ b/chrome/browser/chrome_to_mobile/receive/testing_chrome_to_mobile_receive.cc |
@@ -0,0 +1,28 @@ |
+// 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. |
+ |
+#include "chrome/browser/chrome_to_mobile/receive/testing_chrome_to_mobile_receive.h" |
+ |
+#include "content/public/test/test_browser_thread.h" |
+#include "net/url_request/url_request_test_util.h" |
+ |
+const char kTestCloudPrintUrl[] = "http://cloud.print.com"; |
+ |
+ChromeToMobileReceiveTest::ChromeToMobileReceiveTest() |
+ : cloud_print_server_url_(GURL(kTestCloudPrintUrl)) { |
+ settings_.cloud_print_client_id = "test client id"; |
+ settings_.oauth2_token_service = NULL; |
+} |
+ |
+ChromeToMobileReceiveTest::~ChromeToMobileReceiveTest() { |
+} |
+ |
+void ChromeToMobileReceiveTest::SetUp() { |
+ testing::Test::SetUp(); |
+ test_thread_.reset(new content::TestBrowserThread(content::BrowserThread::UI, |
+ &test_loop_)); |
+ request_context_getter_ = new TestURLRequestContextGetter( |
+ test_loop_.message_loop_proxy()); |
+ settings_.request_context_getter = request_context_getter_; |
+} |