OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 "chrome/browser/autofill/autofill_download_url.h" | 5 #include "components/autofill/browser/autofill_download_url.h" |
6 #include "googleurl/src/gurl.h" | 6 #include "googleurl/src/gurl.h" |
7 #include "testing/gmock/include/gmock/gmock.h" | 7 #include "testing/gmock/include/gmock/gmock.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
9 | 9 |
10 using testing::StartsWith; | 10 using testing::StartsWith; |
11 | 11 |
12 TEST(AutofillDownloadUrlTest, CheckDefaultUrls) { | 12 TEST(AutofillDownloadUrlTest, CheckDefaultUrls) { |
13 std::string query_url = | 13 std::string query_url = |
14 autofill::GetAutofillQueryUrl().spec(); | 14 autofill::GetAutofillQueryUrl().spec(); |
15 EXPECT_THAT(query_url, | 15 EXPECT_THAT(query_url, |
16 StartsWith("https://clients1.google.com/tbproxy/af/query?client=")); | 16 StartsWith("https://clients1.google.com/tbproxy/af/query?client=")); |
17 | 17 |
18 std::string upload_url = | 18 std::string upload_url = |
19 autofill::GetAutofillUploadUrl().spec(); | 19 autofill::GetAutofillUploadUrl().spec(); |
20 EXPECT_THAT(upload_url, | 20 EXPECT_THAT(upload_url, |
21 StartsWith("https://clients1.google.com/tbproxy/af/upload?client=")); | 21 StartsWith("https://clients1.google.com/tbproxy/af/upload?client=")); |
22 } | 22 } |
23 | 23 |
OLD | NEW |