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

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

Issue 2761303002: Move common ImageFetcher component files to core/ (Closed)
Patch Set: Rebased. 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
« no previous file with comments | « components/image_fetcher/core/image_data_fetcher.cc ('k') | components/image_fetcher/core/image_decoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/image_fetcher/core/image_data_fetcher_unittest.cc
diff --git a/components/image_fetcher/image_data_fetcher_unittest.cc b/components/image_fetcher/core/image_data_fetcher_unittest.cc
similarity index 95%
rename from components/image_fetcher/image_data_fetcher_unittest.cc
rename to components/image_fetcher/core/image_data_fetcher_unittest.cc
index d426c5012b38af4393560ea84314b4d99b468e15..fad79ee59a59772fb42602748c3958f996c38b26 100644
--- a/components/image_fetcher/image_data_fetcher_unittest.cc
+++ b/components/image_fetcher/core/image_data_fetcher_unittest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/image_fetcher/image_data_fetcher.h"
+#include "components/image_fetcher/core/image_data_fetcher.h"
#include <memory>
@@ -60,9 +60,8 @@ class ImageDataFetcherTest : public testing::Test {
TEST_F(ImageDataFetcherTest, FetchImageData) {
image_data_fetcher_.FetchImageData(
- GURL(kImageURL),
- base::Bind(&ImageDataFetcherTest::OnImageDataFetched,
- base::Unretained(this)));
+ GURL(kImageURL), base::Bind(&ImageDataFetcherTest::OnImageDataFetched,
+ base::Unretained(this)));
RequestMetadata expected_metadata;
expected_metadata.mime_type = std::string("image/png");
@@ -174,9 +173,8 @@ TEST_F(ImageDataFetcherTest, FetchImageData_FailedRequest) {
// Get and configure the TestURLFetcher.
net::TestURLFetcher* test_url_fetcher = fetcher_factory_.GetFetcherByID(0);
ASSERT_NE(nullptr, test_url_fetcher);
- test_url_fetcher->set_status(
- net::URLRequestStatus(net::URLRequestStatus::FAILED,
- net::ERR_INVALID_URL));
+ test_url_fetcher->set_status(net::URLRequestStatus(
+ net::URLRequestStatus::FAILED, net::ERR_INVALID_URL));
// Call the URLFetcher delegate to continue the test.
test_url_fetcher->delegate()->OnURLFetchComplete(test_url_fetcher);
« no previous file with comments | « components/image_fetcher/core/image_data_fetcher.cc ('k') | components/image_fetcher/core/image_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698