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

Unified Diff: components/image_fetcher/image_data_fetcher.h

Issue 2074093002: Add a unittest for image_data_fetcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments treib@ Created 4 years, 6 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/image_data_fetcher.h
diff --git a/components/image_fetcher/image_data_fetcher.h b/components/image_fetcher/image_data_fetcher.h
index bd476ef09f0824fa3076a76430805ef6c9571857..94432311f342ab322c6eb8afe7bffe50ae2cea00 100644
--- a/components/image_fetcher/image_data_fetcher.h
+++ b/components/image_fetcher/image_data_fetcher.h
@@ -49,6 +49,13 @@ class ImageDataFetcher : public net::URLFetcherDelegate {
scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_;
+ // The next ID to use for a newly created URLFetcher. Each URLFetcher gets an
+ // id when it is created. The |url_fetcher_id_| is incremented by one for each
+ // newly created URLFetcher. The URLFetcher ID can be used during testing to
+ // get individual URLFetchers and modify their state. Outside of tests this ID
+ // is not used.
+ int next_url_fetcher_id_;
+
DISALLOW_COPY_AND_ASSIGN(ImageDataFetcher);
};

Powered by Google App Engine
This is Rietveld 408576698