OLD | NEW |
(Empty) | |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/chrome_to_mobile/receive/testing_chrome_to_mobile_recei
ve.h" |
| 6 |
| 7 #include "content/public/test/test_browser_thread.h" |
| 8 #include "net/url_request/url_request_test_util.h" |
| 9 |
| 10 const char kTestCloudPrintUrl[] = "http://cloud.print.com"; |
| 11 |
| 12 ChromeToMobileReceiveTest::ChromeToMobileReceiveTest() |
| 13 : cloud_print_server_url_(GURL(kTestCloudPrintUrl)) { |
| 14 settings_.cloud_print_client_id = "test client id"; |
| 15 settings_.oauth2_token_service = NULL; |
| 16 } |
| 17 |
| 18 ChromeToMobileReceiveTest::~ChromeToMobileReceiveTest() { |
| 19 } |
| 20 |
| 21 void ChromeToMobileReceiveTest::SetUp() { |
| 22 testing::Test::SetUp(); |
| 23 test_thread_.reset(new content::TestBrowserThread(content::BrowserThread::UI, |
| 24 &test_loop_)); |
| 25 request_context_getter_ = new TestURLRequestContextGetter( |
| 26 test_loop_.message_loop_proxy()); |
| 27 settings_.request_context_getter = request_context_getter_; |
| 28 } |
OLD | NEW |