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

Side by Side Diff: components/payments/content/payment_manifest_downloader_unittest.cc

Issue 2759283002: Make payment manifest download/parse cross-platform (Closed)
Patch Set: Address comments 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/payments/content/android/payment_manifest_downloader.h" 5 #include "components/payments/content/payment_manifest_downloader.h"
6 6
7 #include "base/threading/thread_task_runner_handle.h" 7 #include "base/threading/thread_task_runner_handle.h"
8 #include "content/public/test/test_browser_thread_bundle.h" 8 #include "content/public/test/test_browser_thread_bundle.h"
9 #include "net/http/http_response_headers.h" 9 #include "net/http/http_response_headers.h"
10 #include "net/url_request/test_url_fetcher_factory.h" 10 #include "net/url_request/test_url_fetcher_factory.h"
11 #include "net/url_request/url_request_test_util.h" 11 #include "net/url_request/url_request_test_util.h"
12 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 namespace payments { 15 namespace payments {
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 fetcher()->set_response_headers(headers); 196 fetcher()->set_response_headers(headers);
197 fetcher()->set_response_code(200); 197 fetcher()->set_response_code(200);
198 198
199 EXPECT_CALL(*this, OnManifestDownloadFailure()); 199 EXPECT_CALL(*this, OnManifestDownloadFailure());
200 200
201 fetcher()->delegate()->OnURLFetchComplete(fetcher()); 201 fetcher()->delegate()->OnURLFetchComplete(fetcher());
202 } 202 }
203 203
204 } // namespace 204 } // namespace
205 } // namespace payments 205 } // namespace payments
OLDNEW
« no previous file with comments | « components/payments/content/payment_manifest_downloader.cc ('k') | components/payments/content/payment_manifest_parser.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698