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

Unified Diff: chrome/browser/chrome_to_mobile/receive/testing_chrome_to_mobile_receive.cc

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.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_;
+}
« no previous file with comments | « chrome/browser/chrome_to_mobile/receive/testing_chrome_to_mobile_receive.h ('k') | chrome/browser/chrome_to_mobile_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698