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 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/memory/ptr_util.h" | 14 #include "base/memory/ptr_util.h" |
| 15 #include "base/message_loop/message_loop.h" |
15 #include "base/run_loop.h" | 16 #include "base/run_loop.h" |
16 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
17 #include "base/strings/string_util.h" | 18 #include "base/strings/string_util.h" |
18 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
19 #include "base/test/histogram_tester.h" | 20 #include "base/test/histogram_tester.h" |
20 #include "base/test/test_timeouts.h" | 21 #include "base/test/test_timeouts.h" |
21 #include "base/threading/thread_task_runner_handle.h" | 22 #include "base/threading/thread_task_runner_handle.h" |
22 #include "components/autofill/core/browser/autofill_field.h" | 23 #include "components/autofill/core/browser/autofill_field.h" |
23 #include "components/autofill/core/browser/autofill_metrics.h" | 24 #include "components/autofill/core/browser/autofill_metrics.h" |
24 #include "components/autofill/core/browser/autofill_type.h" | 25 #include "components/autofill/core/browser/autofill_type.h" |
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
648 EXPECT_EQ(0U, responses_.size()); | 649 EXPECT_EQ(0U, responses_.size()); |
649 | 650 |
650 fetcher = factory.GetFetcherByID(3); | 651 fetcher = factory.GetFetcherByID(3); |
651 ASSERT_TRUE(fetcher); | 652 ASSERT_TRUE(fetcher); |
652 FakeOnURLFetchComplete(fetcher, 200, std::string(responses[0])); | 653 FakeOnURLFetchComplete(fetcher, 200, std::string(responses[0])); |
653 ASSERT_EQ(1U, responses_.size()); | 654 ASSERT_EQ(1U, responses_.size()); |
654 EXPECT_EQ(responses[0], responses_.front().response); | 655 EXPECT_EQ(responses[0], responses_.front().response); |
655 } | 656 } |
656 | 657 |
657 } // namespace autofill | 658 } // namespace autofill |
OLD | NEW |