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 <cmath> | 5 #include <cmath> |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/format_macros.h" | 8 #include "base/format_macros.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
12 #include "components/autofill/content/browser/autocheckout/whitelist_manager.h" | 12 #include "components/autofill/content/browser/autocheckout/whitelist_manager.h" |
13 #include "components/autofill/core/browser/autofill_metrics.h" | 13 #include "components/autofill/core/browser/autofill_metrics.h" |
14 #include "components/autofill/core/common/autofill_switches.h" | 14 #include "components/autofill/core/common/autofill_switches.h" |
15 #include "content/public/test/test_browser_thread_bundle.h" | 15 #include "content/public/test/test_browser_thread_bundle.h" |
16 #include "net/base/net_errors.h" | 16 #include "net/base/net_errors.h" |
17 #include "net/http/http_status_code.h" | 17 #include "net/http/http_status_code.h" |
18 #include "net/url_request/test_url_fetcher_factory.h" | 18 #include "net/url_request/test_url_fetcher_factory.h" |
19 #include "net/url_request/url_fetcher_delegate.h" | 19 #include "net/url_request/url_fetcher_delegate.h" |
20 #include "net/url_request/url_request_status.h" | 20 #include "net/url_request/url_request_status.h" |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 GURL("https://cart.merchant2.com/ShippingInfo?a=b&c=d"))); | 299 GURL("https://cart.merchant2.com/ShippingInfo?a=b&c=d"))); |
300 // Bypass other urls. | 300 // Bypass other urls. |
301 EXPECT_EQ(std::string("https://bypass.me/"), | 301 EXPECT_EQ(std::string("https://bypass.me/"), |
302 whitelist_manager_->GetMatchedURLPrefix( | 302 whitelist_manager_->GetMatchedURLPrefix( |
303 GURL("https://bypass.me/"))); | 303 GURL("https://bypass.me/"))); |
304 } | 304 } |
305 | 305 |
306 } // namespace autocheckout | 306 } // namespace autocheckout |
307 } // namespace autofill | 307 } // namespace autofill |
308 | 308 |
OLD | NEW |