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

Side by Side Diff: chrome/browser/safe_browsing/download_protection_service_unittest.cc

Issue 8403017: Rename URLFetcher to be URLFetcherImpl, now that we have the content::URLFetcher interface. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 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 "chrome/browser/safe_browsing/download_protection_service.h" 5 #include "chrome/browser/safe_browsing/download_protection_service.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/message_loop.h" 14 #include "base/message_loop.h"
15 #include "chrome/common/safe_browsing/csd.pb.h" 15 #include "chrome/common/safe_browsing/csd.pb.h"
16 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 16 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
17 #include "content/browser/browser_thread.h" 17 #include "content/browser/browser_thread.h"
18 #include "content/common/net/url_fetcher.h"
19 #include "content/test/test_url_fetcher_factory.h" 18 #include "content/test/test_url_fetcher_factory.h"
20 #include "googleurl/src/gurl.h" 19 #include "googleurl/src/gurl.h"
21 #include "testing/gmock/include/gmock/gmock.h" 20 #include "testing/gmock/include/gmock/gmock.h"
22 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
23 22
24 using ::testing::Return; 23 using ::testing::Return;
25 using ::testing::_; 24 using ::testing::_;
26 25
27 namespace safe_browsing { 26 namespace safe_browsing {
28 namespace { 27 namespace {
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 EXPECT_EQ(2, request.resources_size()); 217 EXPECT_EQ(2, request.resources_size());
219 EXPECT_TRUE(RequestContainsResource(request, 218 EXPECT_TRUE(RequestContainsResource(request,
220 ClientDownloadRequest::DOWNLOAD_REDIRECT, 219 ClientDownloadRequest::DOWNLOAD_REDIRECT,
221 "http://www.google.com/", "")); 220 "http://www.google.com/", ""));
222 EXPECT_TRUE(RequestContainsResource(request, 221 EXPECT_TRUE(RequestContainsResource(request,
223 ClientDownloadRequest::DOWNLOAD_URL, 222 ClientDownloadRequest::DOWNLOAD_URL,
224 "http://www.google.com/bla.exe", 223 "http://www.google.com/bla.exe",
225 info.referrer_url.spec())); 224 info.referrer_url.spec()));
226 } 225 }
227 } // namespace safe_browsing 226 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698