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

Unified Diff: components/image_fetcher/core/image_data_fetcher_unittest.cc

Issue 2794343002: Network traffic annotation added to image_data_fetcher. (Closed)
Patch Set: Annotation moved to callers. Created 3 years, 7 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: components/image_fetcher/core/image_data_fetcher_unittest.cc
diff --git a/components/image_fetcher/core/image_data_fetcher_unittest.cc b/components/image_fetcher/core/image_data_fetcher_unittest.cc
index de47936940e765dbce0e04d77260904413fecbd6..4e708ef7284a5fbcb099f0631f2be8ccc157b2aa 100644
--- a/components/image_fetcher/core/image_data_fetcher_unittest.cc
+++ b/components/image_fetcher/core/image_data_fetcher_unittest.cc
@@ -13,6 +13,7 @@
#include "net/base/load_flags.h"
#include "net/http/http_response_headers.h"
#include "net/http/http_status_code.h"
+#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "net/url_request/test_url_fetcher_factory.h"
#include "net/url_request/url_request_status.h"
#include "net/url_request/url_request_test_util.h"
@@ -33,7 +34,8 @@ class ImageDataFetcherTest : public testing::Test {
ImageDataFetcherTest()
: test_request_context_getter_(
new net::TestURLRequestContextGetter(message_loop_.task_runner())),
- image_data_fetcher_(test_request_context_getter_.get()) {}
+ image_data_fetcher_(test_request_context_getter_.get(),
+ TRAFFIC_ANNOTATION_FOR_TESTS) {}
~ImageDataFetcherTest() override {}
MOCK_METHOD2(OnImageDataFetched,

Powered by Google App Engine
This is Rietveld 408576698