| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <utility> | 5 #include <utility> |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| 11 #include "components/autofill/core/browser/autofill_test_utils.h" | 11 #include "components/autofill/core/browser/autofill_test_utils.h" |
| 12 #include "components/autofill/core/browser/payments/payments_client.h" | 12 #include "components/autofill/core/browser/payments/payments_client.h" |
| 13 #include "components/autofill/core/common/autofill_switches.h" | 13 #include "components/autofill/core/common/autofill_switches.h" |
| 14 #include "content/public/test/test_browser_thread_bundle.h" | 14 #include "content/public/test/test_browser_thread_bundle.h" |
| 15 #include "google_apis/gaia/fake_identity_provider.h" | 15 #include "google_apis/gaia/fake_identity_provider.h" |
| 16 #include "google_apis/gaia/fake_oauth2_token_service.h" | 16 #include "google_apis/gaia/fake_oauth2_token_service.h" |
| 17 #include "net/url_request/test_url_fetcher_factory.h" | 17 #include "net/url_request/test_url_fetcher_factory.h" |
| 18 #include "net/url_request/url_request_test_util.h" | 18 #include "net/url_request/url_request_test_util.h" |
| 19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 TEST_F(PaymentsClientTest, OtherError) { | 275 TEST_F(PaymentsClientTest, OtherError) { |
| 276 StartUnmasking(); | 276 StartUnmasking(); |
| 277 IssueOAuthToken(); | 277 IssueOAuthToken(); |
| 278 ReturnResponse(net::HTTP_FORBIDDEN, std::string()); | 278 ReturnResponse(net::HTTP_FORBIDDEN, std::string()); |
| 279 EXPECT_EQ(AutofillClient::PERMANENT_FAILURE, result_); | 279 EXPECT_EQ(AutofillClient::PERMANENT_FAILURE, result_); |
| 280 EXPECT_EQ("", real_pan_); | 280 EXPECT_EQ("", real_pan_); |
| 281 } | 281 } |
| 282 | 282 |
| 283 } // namespace autofill | 283 } // namespace autofill |
| 284 } // namespace payments | 284 } // namespace payments |
| OLD | NEW |