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

Unified Diff: chrome/browser/omaha_client/chrome_omaha_query_params_delegate_unittest.cc

Issue 803313003: Rename omaha_client and similar tokens to update_client in all contexts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: rebase to master Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/omaha_client/chrome_omaha_query_params_delegate.cc ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/omaha_client/chrome_omaha_query_params_delegate_unittest.cc
diff --git a/chrome/browser/omaha_client/chrome_omaha_query_params_delegate_unittest.cc b/chrome/browser/omaha_client/chrome_omaha_query_params_delegate_unittest.cc
deleted file mode 100644
index 9f3aa133b646da078ed8c29efde3d77294194a4d..0000000000000000000000000000000000000000
--- a/chrome/browser/omaha_client/chrome_omaha_query_params_delegate_unittest.cc
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2014 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 "base/strings/stringprintf.h"
-#include "chrome/browser/omaha_client/chrome_omaha_query_params_delegate.h"
-#include "chrome/common/chrome_version_info.h"
-#include "components/omaha_client/omaha_query_params.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-using base::StringPrintf;
-
-namespace {
-
-bool Contains(const std::string& source, const std::string& target) {
- return source.find(target) != std::string::npos;
-}
-
-} // namespace
-
-void TestParams(omaha_client::OmahaQueryParams::ProdId prod_id) {
- std::string params = omaha_client::OmahaQueryParams::Get(prod_id);
-
- EXPECT_TRUE(Contains(
- params,
- StringPrintf("os=%s", omaha_client::OmahaQueryParams::GetOS())));
- EXPECT_TRUE(
- Contains(params,
- StringPrintf("arch=%s",
- omaha_client::OmahaQueryParams::GetArch())));
- EXPECT_TRUE(Contains(
- params,
- StringPrintf(
- "prod=%s",
- omaha_client::OmahaQueryParams::GetProdIdString(prod_id))));
- EXPECT_TRUE(Contains(
- params,
- StringPrintf("prodchannel=%s",
- ChromeOmahaQueryParamsDelegate::GetChannelString())));
- EXPECT_TRUE(Contains(
- params,
- StringPrintf("prodversion=%s", chrome::VersionInfo().Version().c_str())));
- EXPECT_TRUE(Contains(
- params,
- StringPrintf("lang=%s", ChromeOmahaQueryParamsDelegate::GetLang())));
-}
-
-TEST(ChromeOmahaQueryParamsDelegateTest, GetParams) {
- TestParams(omaha_client::OmahaQueryParams::CRX);
- TestParams(omaha_client::OmahaQueryParams::CHROME);
-}
« no previous file with comments | « chrome/browser/omaha_client/chrome_omaha_query_params_delegate.cc ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698