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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection_unittest.cc

Issue 1553623002: Remove random lonely semicolons. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix formatting Created 5 years 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
Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection_unittest.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection_unittest.cc
index 636e7e1251de08877cfa9b0e24b076acd97efb10..ea8bd2d9d4d29e539307a8b0496bf7dcd6eb4e61 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection_unittest.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection_unittest.cc
@@ -40,8 +40,9 @@ std::string GetEncoded(const std::string& input) {
base::MD5Digest digest;
base::MD5Sum(input.c_str(), input.size(), &digest);
std::string base64encoded;
- base::Base64Encode(std::string((char*)digest.a, arraysize(digest.a)),
- &base64encoded);
+ base::Base64Encode(
+ std::string(reinterpret_cast<char*>(digest.a), arraysize(digest.a)),
+ &base64encoded);
return base64encoded;
}
@@ -98,9 +99,7 @@ void InitEnv() {
namespace data_reduction_proxy {
-class DataReductionProxyTamperDetectionTest : public testing::Test {
-
-};
+using DataReductionProxyTamperDetectionTest = testing::Test;
// Tests function ValidateChromeProxyHeader.
TEST_F(DataReductionProxyTamperDetectionTest, ChromeProxy) {
@@ -709,7 +708,6 @@ TEST_F(DataReductionProxyTamperDetectionTest, CompressionRatio) {
int original_content_length;
int content_length;
int compression_ratio;
- ;
} tests[] = {
// Checks the correctness of histogram for Video
{"HTTP/1.1 200 OK\n"
@@ -847,4 +845,4 @@ TEST_F(DataReductionProxyTamperDetectionTest, DetectAndReport) {
}
}
-} // namespace
+} // namespace data_reduction_proxy

Powered by Google App Engine
This is Rietveld 408576698