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

Unified Diff: chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc

Issue 815363002: replace COMPILE_ASSERT with static_assert in chrome/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 6 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: chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc
diff --git a/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc b/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc
index 20a5cb4c039920e7a143489cf9d728c9f4cb28f4..8443bdca0a47b2e3798eefcb06d940de77a129e7 100644
--- a/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc
+++ b/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc
@@ -1859,9 +1859,10 @@ const float kDeviceScaleFactorExpectations[] = {
1.0f,
};
-COMPILE_ASSERT(
+static_assert(
arraysize(kDragPoints) == arraysize(kDeviceScaleFactorExpectations),
- kDragPoints_and_kDeviceScaleFactorExpectations_must_have_same_size);
+ "kDragPoints and kDeviceScaleFactorExpectations must have the same "
+ "number of elements");
// Drags tab to |kDragPoints[index]|, then calls the next step function.
void CursorDeviceScaleFactorStep(

Powered by Google App Engine
This is Rietveld 408576698