| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/autofill/core/browser/autofill_download_manager.h" |
| 6 |
| 5 #include <list> | 7 #include <list> |
| 6 | 8 |
| 7 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 8 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
| 9 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
| 11 #include "base/test/test_timeouts.h" | 13 #include "base/test/test_timeouts.h" |
| 12 #include "components/autofill/core/browser/autofill_download.h" | |
| 13 #include "components/autofill/core/browser/autofill_field.h" | 14 #include "components/autofill/core/browser/autofill_field.h" |
| 14 #include "components/autofill/core/browser/autofill_metrics.h" | 15 #include "components/autofill/core/browser/autofill_metrics.h" |
| 15 #include "components/autofill/core/browser/autofill_test_utils.h" | 16 #include "components/autofill/core/browser/autofill_test_utils.h" |
| 16 #include "components/autofill/core/browser/autofill_type.h" | 17 #include "components/autofill/core/browser/autofill_type.h" |
| 17 #include "components/autofill/core/browser/form_structure.h" | 18 #include "components/autofill/core/browser/form_structure.h" |
| 18 #include "components/autofill/core/browser/test_autofill_driver.h" | 19 #include "components/autofill/core/browser/test_autofill_driver.h" |
| 19 #include "components/autofill/core/common/form_data.h" | 20 #include "components/autofill/core/common/form_data.h" |
| 20 #include "net/url_request/test_url_fetcher_factory.h" | 21 #include "net/url_request/test_url_fetcher_factory.h" |
| 21 #include "net/url_request/url_request_status.h" | 22 #include "net/url_request/url_request_status.h" |
| 22 #include "net/url_request/url_request_test_util.h" | 23 #include "net/url_request/url_request_test_util.h" |
| (...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 EXPECT_EQ(static_cast<size_t>(0), responses_.size()); | 488 EXPECT_EQ(static_cast<size_t>(0), responses_.size()); |
| 488 | 489 |
| 489 fetcher = factory.GetFetcherByID(3); | 490 fetcher = factory.GetFetcherByID(3); |
| 490 ASSERT_TRUE(fetcher); | 491 ASSERT_TRUE(fetcher); |
| 491 FakeOnURLFetchComplete(fetcher, 200, std::string(responses[0])); | 492 FakeOnURLFetchComplete(fetcher, 200, std::string(responses[0])); |
| 492 ASSERT_EQ(static_cast<size_t>(1), responses_.size()); | 493 ASSERT_EQ(static_cast<size_t>(1), responses_.size()); |
| 493 EXPECT_EQ(responses[0], responses_.front().response); | 494 EXPECT_EQ(responses[0], responses_.front().response); |
| 494 } | 495 } |
| 495 | 496 |
| 496 } // namespace autofill | 497 } // namespace autofill |
| OLD | NEW |