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

Unified Diff: net/websockets/websocket_frame_perftest.cc

Issue 826973002: replace COMPILE_ASSERT with static_assert in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: apply fixups 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 | « net/websockets/websocket_frame.cc ('k') | net/websockets/websocket_frame_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/websockets/websocket_frame_perftest.cc
diff --git a/net/websockets/websocket_frame_perftest.cc b/net/websockets/websocket_frame_perftest.cc
index 11fe5afab2a3ca1c3167656874a42e4a4848b8a3..98ea624ac145036b4cc588ac5dd3bfd9f74a6566 100644
--- a/net/websockets/websocket_frame_perftest.cc
+++ b/net/websockets/websocket_frame_perftest.cc
@@ -19,9 +19,9 @@ const int kIterations = 100000;
const int kLongPayloadSize = 1 << 16;
const char kMaskingKey[] = "\xFE\xED\xBE\xEF";
-COMPILE_ASSERT(arraysize(kMaskingKey) ==
- WebSocketFrameHeader::kMaskingKeyLength + 1,
- incorrect_masking_key_size);
+static_assert(arraysize(kMaskingKey) ==
+ WebSocketFrameHeader::kMaskingKeyLength + 1,
+ "incorrect masking key size");
class WebSocketFrameTestMaskBenchmark : public ::testing::Test {
protected:
« no previous file with comments | « net/websockets/websocket_frame.cc ('k') | net/websockets/websocket_frame_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698