summaryrefslogtreecommitdiffstats
path: root/components/autofill/browser/autofill_download_url_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'components/autofill/browser/autofill_download_url_unittest.cc')
-rw-r--r--components/autofill/browser/autofill_download_url_unittest.cc23
1 files changed, 23 insertions, 0 deletions
diff --git a/components/autofill/browser/autofill_download_url_unittest.cc b/components/autofill/browser/autofill_download_url_unittest.cc
new file mode 100644
index 0000000..7ae3449
--- /dev/null
+++ b/components/autofill/browser/autofill_download_url_unittest.cc
@@ -0,0 +1,23 @@
+// 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 "components/autofill/browser/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="));
+}
+