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

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

Issue 9114020: Remove task.h and finish base::Bind() migration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 8 years, 11 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 <map> 5 #include <map>
6 #include <queue> 6 #include <queue>
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/message_loop.h" 13 #include "base/message_loop.h"
14 #include "base/task.h"
15 #include "base/time.h" 14 #include "base/time.h"
16 #include "chrome/browser/safe_browsing/client_side_detection_service.h" 15 #include "chrome/browser/safe_browsing/client_side_detection_service.h"
17 #include "chrome/common/safe_browsing/client_model.pb.h" 16 #include "chrome/common/safe_browsing/client_model.pb.h"
18 #include "chrome/common/safe_browsing/csd.pb.h" 17 #include "chrome/common/safe_browsing/csd.pb.h"
19 #include "content/test/test_browser_thread.h" 18 #include "content/test/test_browser_thread.h"
20 #include "content/test/test_url_fetcher_factory.h" 19 #include "content/test/test_url_fetcher_factory.h"
21 #include "crypto/sha2.h" 20 #include "crypto/sha2.h"
22 #include "googleurl/src/gurl.h" 21 #include "googleurl/src/gurl.h"
23 #include "net/url_request/url_request_status.h" 22 #include "net/url_request/url_request_status.h"
24 #include "testing/gmock/include/gmock/gmock.h" 23 #include "testing/gmock/include/gmock/gmock.h"
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 EXPECT_CALL(*service, ScheduleFetchModel(_)) 648 EXPECT_CALL(*service, ScheduleFetchModel(_))
650 .WillOnce(Invoke(service, &MockClientSideDetectionService::Schedule)); 649 .WillOnce(Invoke(service, &MockClientSideDetectionService::Schedule));
651 EXPECT_CALL(*service, EndFetchModel( 650 EXPECT_CALL(*service, EndFetchModel(
652 ClientSideDetectionService::MODEL_NOT_CHANGED)) 651 ClientSideDetectionService::MODEL_NOT_CHANGED))
653 .WillOnce(Invoke(service, &MockClientSideDetectionService::Disable)); 652 .WillOnce(Invoke(service, &MockClientSideDetectionService::Disable));
654 csd_service_->SetEnabledAndRefreshState(true); 653 csd_service_->SetEnabledAndRefreshState(true);
655 EXPECT_FALSE(SendClientReportPhishingRequest(GURL("http://a.com/"), 0.4f)); 654 EXPECT_FALSE(SendClientReportPhishingRequest(GURL("http://a.com/"), 0.4f));
656 Mock::VerifyAndClearExpectations(service); 655 Mock::VerifyAndClearExpectations(service);
657 } 656 }
658 } // namespace safe_browsing 657 } // namespace safe_browsing
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/client_side_detection_service.cc ('k') | chrome/browser/safe_browsing/protocol_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698