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

Side by Side Diff: chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_unittest.cc

Issue 530153002: Add build and patch to Chrome-Proxy header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 2014 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/net/spdyproxy/data_reduction_proxy_chrome_settings.h"
6
7 #include "testing/gtest/include/gtest/gtest.h"
8
9 const char kVersion[] = "1.2.3.4";
10 const char kExpectedBuildAndPatch[] = "3.4";
11
12 class DataReductionProxyChromeSettingsTest : public testing::Test {
13 public:
14 DataReductionProxyChromeSettingsTest() {}
15 };
16
17 TEST_F(DataReductionProxyChromeSettingsTest, TestGetBuildAndPatchNumber) {
bengr 2014/09/02 22:57:53 For completeness add a test that verifies that a b
megjablon 2014/09/02 23:11:28 Done.
18 std::string build_and_patch =
19 DataReductionProxyChromeSettings::GetBuildAndPatchNumberFromString(
20 kVersion);
21 EXPECT_EQ(kExpectedBuildAndPatch, build_and_patch);
22 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698