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 "base/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "chrome/test/base/testing_profile.h" | 8 #include "chrome/test/base/testing_profile.h" |
9 #include "components/autofill/browser/autofill_metrics.h" | 9 #include "components/autofill/browser/autofill_metrics.h" |
10 #include "components/autofill/common/autofill_switches.h" | |
11 #include "components/autofill/content/browser/autocheckout/whitelist_manager.h" | 10 #include "components/autofill/content/browser/autocheckout/whitelist_manager.h" |
| 11 #include "components/autofill/core/common/autofill_switches.h" |
12 #include "content/public/test/test_browser_thread_bundle.h" | 12 #include "content/public/test/test_browser_thread_bundle.h" |
13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
14 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
15 #include "net/http/http_status_code.h" | 15 #include "net/http/http_status_code.h" |
16 #include "net/url_request/test_url_fetcher_factory.h" | 16 #include "net/url_request/test_url_fetcher_factory.h" |
17 #include "net/url_request/url_fetcher_delegate.h" | 17 #include "net/url_request/url_fetcher_delegate.h" |
18 #include "net/url_request/url_request_status.h" | 18 #include "net/url_request/url_request_status.h" |
19 #include "testing/gmock/include/gmock/gmock.h" | 19 #include "testing/gmock/include/gmock/gmock.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
21 | 21 |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 GURL("https://cart.merchant2.com/ShippingInfo?a=b&c=d"))); | 282 GURL("https://cart.merchant2.com/ShippingInfo?a=b&c=d"))); |
283 // Bypass other urls. | 283 // Bypass other urls. |
284 EXPECT_EQ(std::string("https://bypass.me/"), | 284 EXPECT_EQ(std::string("https://bypass.me/"), |
285 whitelist_manager_->GetMatchedURLPrefix( | 285 whitelist_manager_->GetMatchedURLPrefix( |
286 GURL("https://bypass.me/"))); | 286 GURL("https://bypass.me/"))); |
287 } | 287 } |
288 | 288 |
289 } // namespace autocheckout | 289 } // namespace autocheckout |
290 } // namespace autofill | 290 } // namespace autofill |
291 | 291 |
OLD | NEW |