| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |