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

Unified Diff: content/test/plugin/plugin_get_javascript_url2_test.cc

Issue 791923003: replace COMPILE_ASSERT with static_assert in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « content/renderer/render_widget.cc ('k') | content/test/plugin/plugin_get_javascript_url_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/plugin/plugin_get_javascript_url2_test.cc
diff --git a/content/test/plugin/plugin_get_javascript_url2_test.cc b/content/test/plugin/plugin_get_javascript_url2_test.cc
index e9ab4451e40f8dd6313616f34913fc78d4d3adf1..8d97daff492323fe8fa08d399f7be7f83154c539 100644
--- a/content/test/plugin/plugin_get_javascript_url2_test.cc
+++ b/content/test/plugin/plugin_get_javascript_url2_test.cc
@@ -44,8 +44,8 @@ NPError ExecuteGetJavascriptUrl2Test::NewStream(NPMIMEType type, NPStream* strea
return NPERR_INVALID_PARAM;
}
- COMPILE_ASSERT(sizeof(unsigned long) <= sizeof(stream->notifyData),
- cast_validity_check);
+ static_assert(sizeof(unsigned long) <= sizeof(stream->notifyData),
+ "cast validity check");
unsigned long stream_id = reinterpret_cast<unsigned long>(stream->notifyData);
switch (stream_id) {
case SELF_URL_STREAM_ID:
@@ -72,8 +72,8 @@ int32 ExecuteGetJavascriptUrl2Test::Write(NPStream *stream, int32 offset, int32
return -1;
}
- COMPILE_ASSERT(sizeof(unsigned long) <= sizeof(stream->notifyData),
- cast_validity_check);
+ static_assert(sizeof(unsigned long) <= sizeof(stream->notifyData),
+ "cast validity check");
unsigned long stream_id = reinterpret_cast<unsigned long>(stream->notifyData);
switch (stream_id) {
case SELF_URL_STREAM_ID:
@@ -94,8 +94,8 @@ NPError ExecuteGetJavascriptUrl2Test::DestroyStream(NPStream *stream, NPError re
return NPERR_INVALID_PARAM;
}
- COMPILE_ASSERT(sizeof(unsigned long) <= sizeof(stream->notifyData),
- cast_validity_check);
+ static_assert(sizeof(unsigned long) <= sizeof(stream->notifyData),
+ "cast validity check");
unsigned long stream_id = reinterpret_cast<unsigned long>(stream->notifyData);
switch (stream_id) {
case SELF_URL_STREAM_ID:
@@ -109,8 +109,8 @@ NPError ExecuteGetJavascriptUrl2Test::DestroyStream(NPStream *stream, NPError re
}
void ExecuteGetJavascriptUrl2Test::URLNotify(const char* url, NPReason reason, void* data) {
- COMPILE_ASSERT(sizeof(unsigned long) <= sizeof(data),
- cast_validity_check);
+ static_assert(sizeof(unsigned long) <= sizeof(data),
+ "cast validity check");
unsigned long stream_id = reinterpret_cast<unsigned long>(data);
switch (stream_id) {
« no previous file with comments | « content/renderer/render_widget.cc ('k') | content/test/plugin/plugin_get_javascript_url_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698