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

Side by Side Diff: chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc

Issue 11360151: Move common cloud print methods from service/cloud_print to common/cloud_print. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/memory/ref_counted.h" 6 #include "base/memory/ref_counted.h"
7 #include "base/message_loop_proxy.h" 7 #include "base/message_loop_proxy.h"
8 #include "base/synchronization/waitable_event.h" 8 #include "base/synchronization/waitable_event.h"
9 #include "base/threading/thread.h" 9 #include "base/threading/thread.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "chrome/service/cloud_print/cloud_print_url_fetcher.h" 11 #include "chrome/service/cloud_print/cloud_print_url_fetcher.h"
12 #include "chrome/service/service_process.h" 12 #include "chrome/service/service_process.h"
13 #include "googleurl/src/gurl.h" 13 #include "googleurl/src/gurl.h"
14 #include "net/test/test_server.h" 14 #include "net/test/test_server.h"
15 #include "net/url_request/url_request_context_getter.h" 15 #include "net/url_request/url_request_context_getter.h"
16 #include "net/url_request/url_request_status.h" 16 #include "net/url_request/url_request_status.h"
17 #include "net/url_request/url_request_test_util.h" 17 #include "net/url_request/url_request_test_util.h"
18 #include "net/url_request/url_request_throttler_manager.h" 18 #include "net/url_request/url_request_throttler_manager.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 20
21 using base::Time; 21 using base::Time;
22 using base::TimeDelta; 22 using base::TimeDelta;
23 23
24 namespace { 24 namespace cloud_print {
25 25
26 const FilePath::CharType kDocRoot[] = FILE_PATH_LITERAL("chrome/test/data"); 26 const FilePath::CharType kDocRoot[] = FILE_PATH_LITERAL("chrome/test/data");
27 27
28 int g_request_context_getter_instances = 0; 28 int g_request_context_getter_instances = 0;
29 class TrackingTestURLRequestContextGetter 29 class TrackingTestURLRequestContextGetter
30 : public net::TestURLRequestContextGetter { 30 : public net::TestURLRequestContextGetter {
31 public: 31 public:
32 explicit TrackingTestURLRequestContextGetter( 32 explicit TrackingTestURLRequestContextGetter(
33 base::MessageLoopProxy* io_message_loop_proxy, 33 base::MessageLoopProxy* io_message_loop_proxy,
34 net::URLRequestThrottlerManager* throttler_manager) 34 net::URLRequestThrottlerManager* throttler_manager)
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 net::TestServer::kLocalhost, 368 net::TestServer::kLocalhost,
369 FilePath(kDocRoot)); 369 FilePath(kDocRoot));
370 ASSERT_TRUE(test_server.Start()); 370 ASSERT_TRUE(test_server.Start());
371 371
372 GURL url(test_server.GetURL("defaultresponse")); 372 GURL url(test_server.GetURL("defaultresponse"));
373 CreateFetcher(url, 11); 373 CreateFetcher(url, 11);
374 374
375 MessageLoop::current()->Run(); 375 MessageLoop::current()->Run();
376 } 376 }
377 377
378 } // namespace. 378 } // namespace cloud_print
OLDNEW
« no previous file with comments | « chrome/service/cloud_print/cloud_print_url_fetcher.cc ('k') | chrome/service/cloud_print/cloud_print_wipeout.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698