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

Unified Diff: chrome/browser/safe_browsing/download_feedback_unittest.cc

Issue 2697193003: Network traffic annotation added to safe_browsing (Closed)
Patch Set: Comments addressed. Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/safe_browsing/download_feedback_unittest.cc
diff --git a/chrome/browser/safe_browsing/download_feedback_unittest.cc b/chrome/browser/safe_browsing/download_feedback_unittest.cc
index 8af5c16e75e274dee5387b600db6e09af77592b3..4cf20b7d57a3152557500a3b478345bc4b51ac8f 100644
--- a/chrome/browser/safe_browsing/download_feedback_unittest.cc
+++ b/chrome/browser/safe_browsing/download_feedback_unittest.cc
@@ -14,6 +14,7 @@
#include "chrome/common/safe_browsing/csd.pb.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/test/test_browser_thread_bundle.h"
+#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "net/url_request/url_request_test_util.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -75,7 +76,8 @@ class FakeUploaderFactory : public TwoPhaseUploaderFactory {
const std::string& metadata,
const base::FilePath& file_path,
const TwoPhaseUploader::ProgressCallback& progress_callback,
- const TwoPhaseUploader::FinishCallback& finish_callback) override;
+ const TwoPhaseUploader::FinishCallback& finish_callback,
+ const net::NetworkTrafficAnnotationTag& traffic_annotation) override;
FakeUploader* uploader_;
};
@@ -87,7 +89,8 @@ std::unique_ptr<TwoPhaseUploader> FakeUploaderFactory::CreateTwoPhaseUploader(
const std::string& metadata,
const base::FilePath& file_path,
const TwoPhaseUploader::ProgressCallback& progress_callback,
- const TwoPhaseUploader::FinishCallback& finish_callback) {
+ const TwoPhaseUploader::FinishCallback& finish_callback,
+ const net::NetworkTrafficAnnotationTag& traffic_annotation) {
EXPECT_FALSE(uploader_);
uploader_ = new FakeUploader(url_request_context_getter, file_task_runner,
« no previous file with comments | « chrome/browser/safe_browsing/download_feedback.cc ('k') | chrome/browser/safe_browsing/threat_details_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698