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

Unified Diff: components/update_client/update_query_params_unittest.cc

Issue 2768573002: Send traffic-management headers from extension updater. (Closed)
Patch Set: Change the code according to mek's comments. Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/update_client/update_query_params.cc ('k') | extensions/browser/updater/extension_downloader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/update_client/update_query_params_unittest.cc
diff --git a/components/update_client/update_query_params_unittest.cc b/components/update_client/update_query_params_unittest.cc
index 992dbd37a9865eb9c64a82250f36b17d9224d0c7..92666780ac609c7d478e932ad5933eea6b468e5c 100644
--- a/components/update_client/update_query_params_unittest.cc
+++ b/components/update_client/update_query_params_unittest.cc
@@ -2,9 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "base/strings/stringprintf.h"
#include "components/update_client/update_query_params.h"
+#include "base/strings/stringprintf.h"
#include "components/update_client/update_query_params_delegate.h"
+#include "components/version_info/version_info.h"
#include "testing/gtest/include/gtest/gtest.h"
using base::StringPrintf;
@@ -41,7 +42,14 @@ void TestParams(UpdateQueryParams::ProdId prod_id, bool extra_params) {
EXPECT_TRUE(Contains(params, "cat=dog"));
}
+void TestProdVersion() {
+ EXPECT_EQ(version_info::GetVersionNumber(),
+ UpdateQueryParams::GetProdVersion());
+}
+
TEST(UpdateQueryParamsTest, GetParams) {
+ TestProdVersion();
+
TestParams(UpdateQueryParams::CRX, false);
TestParams(UpdateQueryParams::CHROME, false);
« no previous file with comments | « components/update_client/update_query_params.cc ('k') | extensions/browser/updater/extension_downloader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698