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

Unified Diff: chrome/browser/search/suggestions/image_fetcher_impl_browsertest.cc

Issue 2794343002: Network traffic annotation added to image_data_fetcher. (Closed)
Patch Set: Comments addressed. 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: chrome/browser/search/suggestions/image_fetcher_impl_browsertest.cc
diff --git a/chrome/browser/search/suggestions/image_fetcher_impl_browsertest.cc b/chrome/browser/search/suggestions/image_fetcher_impl_browsertest.cc
index 29c4583b4dd86aff92d49532155578b8bc74b80d..5ac7e082d85160411e2113aff06fd6f796c6399f 100644
--- a/chrome/browser/search/suggestions/image_fetcher_impl_browsertest.cc
+++ b/chrome/browser/search/suggestions/image_fetcher_impl_browsertest.cc
@@ -17,6 +17,7 @@
#include "chrome/test/base/in_process_browser_test.h"
#include "components/image_fetcher/core/image_fetcher_delegate.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
+#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/image/image.h"
#include "url/gurl.h"
@@ -76,9 +77,8 @@ class ImageFetcherImplBrowserTest : public InProcessBrowserTest {
ImageFetcherImpl* CreateImageFetcher() {
ImageFetcherImpl* fetcher =
- new ImageFetcherImpl(
- base::MakeUnique<suggestions::ImageDecoderImpl>(),
- browser()->profile()->GetRequestContext());
+ new ImageFetcherImpl(base::MakeUnique<suggestions::ImageDecoderImpl>(),
+ browser()->profile()->GetRequestContext());
fetcher->SetImageFetcherDelegate(&delegate_);
return fetcher;
}
@@ -100,10 +100,10 @@ class ImageFetcherImplBrowserTest : public InProcessBrowserTest {
base::RunLoop run_loop;
image_fetcher_->StartOrQueueNetworkRequest(
- kTestUrl,
- image_url,
+ kTestUrl, image_url,
base::Bind(&ImageFetcherImplBrowserTest::OnImageAvailable,
- base::Unretained(this), &run_loop));
+ base::Unretained(this), &run_loop),
+ TRAFFIC_ANNOTATION_FOR_TESTS);
run_loop.Run();
}
« no previous file with comments | « chrome/browser/chromeos/hats/hats_notification_controller_unittest.cc ('k') | chrome/browser/search/thumbnail_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698