blob: a7a37e1dc3895b9524ceb3f518516a74b9ab70de [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/autofill/autofill_download_url.h"
#include "googleurl/src/gurl.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
using testing::StartsWith;
TEST(AutofillDownloadUrlTest, CheckDefaultUrls) {
std::string query_url =
autofill::GetAutofillQueryUrl().spec();
EXPECT_THAT(query_url,
StartsWith("https://clients1.google.com/tbproxy/af/query?client="));
std::string upload_url =
autofill::GetAutofillUploadUrl().spec();
EXPECT_THAT(upload_url,
StartsWith("https://clients1.google.com/tbproxy/af/upload?client="));
}