Index: chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_unittest.cc |
diff --git a/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_unittest.cc b/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_unittest.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c15519a0b845a30b34963ef147cf6c704c7b6ede |
--- /dev/null |
+++ b/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_unittest.cc |
@@ -0,0 +1,22 @@ |
+// 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 "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h" |
+ |
+#include "testing/gtest/include/gtest/gtest.h" |
+ |
+const char kVersion[] = "1.2.3.4"; |
+const char kExpectedBuildAndPatch[] = "3.4"; |
+ |
+class DataReductionProxyChromeSettingsTest : public testing::Test { |
+ public: |
+ DataReductionProxyChromeSettingsTest() {} |
+}; |
+ |
+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.
|
+ std::string build_and_patch = |
+ DataReductionProxyChromeSettings::GetBuildAndPatchNumberFromString( |
+ kVersion); |
+ EXPECT_EQ(kExpectedBuildAndPatch, build_and_patch); |
+} |