| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/password_manager/core/browser/affiliation_fetcher.h" | 5 #include "components/password_manager/core/browser/affiliation_fetcher.h" |
| 6 | 6 |
| 7 #include "base/macros.h" |
| 7 #include "base/test/null_task_runner.h" | 8 #include "base/test/null_task_runner.h" |
| 8 #include "components/password_manager/core/browser/affiliation_api.pb.h" | 9 #include "components/password_manager/core/browser/affiliation_api.pb.h" |
| 9 #include "net/url_request/test_url_fetcher_factory.h" | 10 #include "net/url_request/test_url_fetcher_factory.h" |
| 10 #include "net/url_request/url_request_test_util.h" | 11 #include "net/url_request/url_request_test_util.h" |
| 11 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 14 |
| 14 namespace password_manager { | 15 namespace password_manager { |
| 15 | 16 |
| 16 namespace { | 17 namespace { |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 MockAffiliationFetcherDelegate mock_delegate; | 326 MockAffiliationFetcherDelegate mock_delegate; |
| 326 scoped_ptr<AffiliationFetcher> fetcher(AffiliationFetcher::Create( | 327 scoped_ptr<AffiliationFetcher> fetcher(AffiliationFetcher::Create( |
| 327 request_context_getter(), uris, &mock_delegate)); | 328 request_context_getter(), uris, &mock_delegate)); |
| 328 fetcher->StartRequest(); | 329 fetcher->StartRequest(); |
| 329 | 330 |
| 330 EXPECT_CALL(mock_delegate, OnFetchFailed()); | 331 EXPECT_CALL(mock_delegate, OnFetchFailed()); |
| 331 ASSERT_NO_FATAL_FAILURE(SimulateNetworkError()); | 332 ASSERT_NO_FATAL_FAILURE(SimulateNetworkError()); |
| 332 } | 333 } |
| 333 | 334 |
| 334 } // namespace password_manager | 335 } // namespace password_manager |
| OLD | NEW |