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
3 // found in the LICENSE file.
5 #include "components/autofill/core/browser/autofill_download_url.h"
6 #include "testing/gmock/include/gmock/gmock.h"
7 #include "testing/gtest/include/gtest/gtest.h"
10 using testing::StartsWith;
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="));
20 std::string upload_url =
21 autofill::GetAutofillUploadUrl().spec();
22 EXPECT_THAT(upload_url,
23 StartsWith("https://clients1.google.com/tbproxy/af/upload?client="));
26 } // namespace autofill