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

Side by Side Diff: content/browser/renderer_host/resource_queue_unittest.cc

Issue 6532073: Move core pieces of browser\renderer_host to src\content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 months 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/message_loop.h" 5 #include "base/message_loop.h"
6 #include "base/scoped_ptr.h" 6 #include "base/scoped_ptr.h"
7 #include "chrome/browser/browser_thread.h" 7 #include "chrome/browser/browser_thread.h"
8 #include "chrome/browser/renderer_host/global_request_id.h" 8 #include "content/browser/renderer_host/global_request_id.h"
9 #include "chrome/browser/renderer_host/resource_dispatcher_host_request_info.h" 9 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h"
10 #include "chrome/browser/renderer_host/resource_handler.h" 10 #include "content/browser/renderer_host/resource_handler.h"
11 #include "chrome/browser/renderer_host/resource_queue.h" 11 #include "content/browser/renderer_host/resource_queue.h"
12 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
13 #include "net/url_request/url_request.h" 13 #include "net/url_request/url_request.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 namespace { 16 namespace {
17 17
18 const char kTestUrl[] = "data:text/plain,Hello World!"; 18 const char kTestUrl[] = "data:text/plain,Hello World!";
19 19
20 class DummyResourceHandler : public ResourceHandler { 20 class DummyResourceHandler : public ResourceHandler {
21 public: 21 public:
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 MessageLoop::current()->RunAllPending(); 280 MessageLoop::current()->RunAllPending();
281 EXPECT_EQ(0, response_started_count_); 281 EXPECT_EQ(0, response_started_count_);
282 282
283 queue.Shutdown(); 283 queue.Shutdown();
284 284
285 MessageLoop::current()->RunAllPending(); 285 MessageLoop::current()->RunAllPending();
286 EXPECT_EQ(0, response_started_count_); 286 EXPECT_EQ(0, response_started_count_);
287 } 287 }
288 288
289 } // namespace 289 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698