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/autofill/core/browser/autofill_download_manager.h" | 5 #include "components/autofill/core/browser/autofill_download_manager.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <list> | 9 #include <list> |
10 #include <memory> | 10 #include <memory> |
11 #include <utility> | 11 #include <utility> |
12 | 12 |
13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
14 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
15 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
16 #include "base/test/histogram_tester.h" | 16 #include "base/test/histogram_tester.h" |
17 #include "base/test/test_timeouts.h" | 17 #include "base/test/test_timeouts.h" |
18 #include "base/thread_task_runner_handle.h" | 18 #include "base/threading/thread_task_runner_handle.h" |
19 #include "components/autofill/core/browser/autofill_field.h" | 19 #include "components/autofill/core/browser/autofill_field.h" |
20 #include "components/autofill/core/browser/autofill_metrics.h" | 20 #include "components/autofill/core/browser/autofill_metrics.h" |
21 #include "components/autofill/core/browser/autofill_type.h" | 21 #include "components/autofill/core/browser/autofill_type.h" |
22 #include "components/autofill/core/browser/form_structure.h" | 22 #include "components/autofill/core/browser/form_structure.h" |
23 #include "components/autofill/core/browser/test_autofill_driver.h" | 23 #include "components/autofill/core/browser/test_autofill_driver.h" |
24 #include "components/autofill/core/common/form_data.h" | 24 #include "components/autofill/core/common/form_data.h" |
25 #include "net/http/http_status_code.h" | 25 #include "net/http/http_status_code.h" |
26 #include "net/url_request/test_url_fetcher_factory.h" | 26 #include "net/url_request/test_url_fetcher_factory.h" |
27 #include "net/url_request/url_request_status.h" | 27 #include "net/url_request/url_request_status.h" |
28 #include "net/url_request/url_request_test_util.h" | 28 #include "net/url_request/url_request_test_util.h" |
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
635 EXPECT_EQ(0U, responses_.size()); | 635 EXPECT_EQ(0U, responses_.size()); |
636 | 636 |
637 fetcher = factory.GetFetcherByID(3); | 637 fetcher = factory.GetFetcherByID(3); |
638 ASSERT_TRUE(fetcher); | 638 ASSERT_TRUE(fetcher); |
639 FakeOnURLFetchComplete(fetcher, 200, std::string(responses[0])); | 639 FakeOnURLFetchComplete(fetcher, 200, std::string(responses[0])); |
640 ASSERT_EQ(1U, responses_.size()); | 640 ASSERT_EQ(1U, responses_.size()); |
641 EXPECT_EQ(responses[0], responses_.front().response); | 641 EXPECT_EQ(responses[0], responses_.front().response); |
642 } | 642 } |
643 | 643 |
644 } // namespace autofill | 644 } // namespace autofill |
OLD | NEW |