OLD | NEW |
---|---|
(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 } | |
OLD | NEW |