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

Side by Side Diff: components/update_client/utils_unittest.cc

Issue 1606943007: Implement Windows GPO support for "dlpref" in component updater. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: whitespace comments only Created 4 years, 11 months 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
OLDNEW
(Empty)
1 // Copyright 2016 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 "components/update_client/utils.h"
6 #include "testing/gtest/include/gtest/gtest.h"
7 #include "url/gurl.h"
8
9 using std::string;
10
11 namespace update_client {
12
13 TEST(BuildProtocolRequest, DownloadPreference) {
14 const string emptystr;
15
16 // Verifies that an empty |download_preference| is not serialized.
17 const string request_no_dlpref = BuildProtocolRequest(
18 emptystr, emptystr, emptystr, emptystr, emptystr, emptystr, emptystr);
19 EXPECT_EQ(string::npos, request_no_dlpref.find(" dlpref="));
20
21 // Verifies that |download_preference| is serialized.
22 const string request_with_dlpref = BuildProtocolRequest(
23 emptystr, emptystr, emptystr, emptystr, "some pref", emptystr, emptystr);
24 EXPECT_NE(string::npos, request_with_dlpref.find(" dlpref=\"some pref\""));
25 }
26
27 } // namespace update_client
OLDNEW
« no previous file with comments | « components/update_client/utils.cc ('k') | ios/chrome/browser/component_updater/ios_component_updater_configurator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698