[email protected] | 7e75176a | 2012-10-29 19:23:04 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
[email protected] | e4b2fa3 | 2013-03-09 22:56:56 | [diff] [blame] | 5 | #include "components/autofill/browser/autofill_download_url.h" |
[email protected] | 7e75176a | 2012-10-29 19:23:04 | [diff] [blame] | 6 | #include "googleurl/src/gurl.h" |
| 7 | #include "testing/gmock/include/gmock/gmock.h" |
| 8 | #include "testing/gtest/include/gtest/gtest.h" |
| 9 | |
| 10 | using testing::StartsWith; |
| 11 | |
[email protected] | e217c563 | 2013-04-12 19:11:48 | [diff] [blame^] | 12 | namespace autofill { |
| 13 | |
[email protected] | 7e75176a | 2012-10-29 19:23:04 | [diff] [blame] | 14 | TEST(AutofillDownloadUrlTest, CheckDefaultUrls) { |
| 15 | std::string query_url = |
| 16 | autofill::GetAutofillQueryUrl().spec(); |
| 17 | EXPECT_THAT(query_url, |
| 18 | StartsWith("https://clients1.google.com/tbproxy/af/query?client=")); |
| 19 | |
| 20 | std::string upload_url = |
| 21 | autofill::GetAutofillUploadUrl().spec(); |
| 22 | EXPECT_THAT(upload_url, |
| 23 | StartsWith("https://clients1.google.com/tbproxy/af/upload?client=")); |
| 24 | } |
| 25 | |
[email protected] | e217c563 | 2013-04-12 19:11:48 | [diff] [blame^] | 26 | } // namespace autofill |