Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: chrome/browser/autofill/autofill_download_url_unittest.cc

Issue 11230060: Adding commandline switch and user pref for autofill server url. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removing pref for autofill server url Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
5 #include "chrome/browser/autofill/autofill_download_url.h"
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
12 class AutofillDownloadUrlTest : public testing::Test {
13 public:
14 AutofillDownloadUrlTest() {}
15 };
Ilya Sherman 2012/10/26 00:10:49 nit: I believe that you can omit this class, and j
ahutter 2012/10/29 15:38:13 Done.
16
17 TEST_F(AutofillDownloadUrlTest, CheckDefaultUrls) {
18 std::string query_url =
19 AutofillDownloadUrl().
20 GetAutofillQueryUrl().spec();
21 EXPECT_THAT(query_url,
22 StartsWith("https://clients1.google.com/tbproxy/af/query?client=") );
Ilya Sherman 2012/10/26 00:10:49 nit: 80-col
ahutter 2012/10/29 15:38:13 Just wondering how you catch this? Is there a pre
23
24 std::string upload_url =
25 AutofillDownloadUrl().
26 GetAutofillUploadUrl().spec();
27 EXPECT_THAT(upload_url,
28 StartsWith("https://clients1.google.com/tbproxy/af/upload?client=" ));
Ilya Sherman 2012/10/26 00:10:49 nit: 80-col
29 }
30
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698