| 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/memory/scoped_vector.h" |
| 13 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
| 14 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
| 15 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
| 16 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
| 17 #include "base/test/histogram_tester.h" | 18 #include "base/test/histogram_tester.h" |
| 18 #include "base/test/test_timeouts.h" | 19 #include "base/test/test_timeouts.h" |
| 19 #include "base/threading/thread_task_runner_handle.h" | 20 #include "base/threading/thread_task_runner_handle.h" |
| 20 #include "components/autofill/core/browser/autofill_field.h" | 21 #include "components/autofill/core/browser/autofill_field.h" |
| 21 #include "components/autofill/core/browser/autofill_metrics.h" | 22 #include "components/autofill/core/browser/autofill_metrics.h" |
| 22 #include "components/autofill/core/browser/autofill_type.h" | 23 #include "components/autofill/core/browser/autofill_type.h" |
| (...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 636 EXPECT_EQ(0U, responses_.size()); | 637 EXPECT_EQ(0U, responses_.size()); |
| 637 | 638 |
| 638 fetcher = factory.GetFetcherByID(3); | 639 fetcher = factory.GetFetcherByID(3); |
| 639 ASSERT_TRUE(fetcher); | 640 ASSERT_TRUE(fetcher); |
| 640 FakeOnURLFetchComplete(fetcher, 200, std::string(responses[0])); | 641 FakeOnURLFetchComplete(fetcher, 200, std::string(responses[0])); |
| 641 ASSERT_EQ(1U, responses_.size()); | 642 ASSERT_EQ(1U, responses_.size()); |
| 642 EXPECT_EQ(responses[0], responses_.front().response); | 643 EXPECT_EQ(responses[0], responses_.front().response); |
| 643 } | 644 } |
| 644 | 645 |
| 645 } // namespace autofill | 646 } // namespace autofill |
| OLD | NEW |