| Index: chrome/browser/download/download_item_model_unittest.cc
|
| diff --git a/chrome/browser/download/download_item_model_unittest.cc b/chrome/browser/download/download_item_model_unittest.cc
|
| index 25bdfe491e1f1a9761227a42e674e8a7f3cf074c..b7cd6adc24fa054ad86e606c3b0b9bde38f6c126 100644
|
| --- a/chrome/browser/download/download_item_model_unittest.cc
|
| +++ b/chrome/browser/download/download_item_model_unittest.cc
|
| @@ -31,7 +31,7 @@ using ::testing::_;
|
| namespace {
|
|
|
| // Create a char array that has as many elements as there are download
|
| -// interrupt reasons. We can then use that in a COMPILE_ASSERT to make sure
|
| +// interrupt reasons. We can then use that in a static_assert to make sure
|
| // that all the interrupt reason codes are accounted for. The reason codes are
|
| // unfortunately sparse, making this necessary.
|
| char kInterruptReasonCounter[] = {
|
| @@ -170,8 +170,8 @@ TEST_F(DownloadItemModelTest, InterruptedStatus) {
|
| { content::DOWNLOAD_INTERRUPT_REASON_CRASH,
|
| "Failed - Crash" },
|
| };
|
| - COMPILE_ASSERT(kInterruptReasonCount == arraysize(kTestCases),
|
| - interrupt_reason_mismatch);
|
| + static_assert(kInterruptReasonCount == arraysize(kTestCases),
|
| + "interrupt reason mismatch");
|
|
|
| SetupDownloadItemDefaults();
|
| for (unsigned i = 0; i < arraysize(kTestCases); ++i) {
|
| @@ -246,8 +246,8 @@ TEST_F(DownloadItemModelTest, InterruptTooltip) {
|
| { content::DOWNLOAD_INTERRUPT_REASON_CRASH,
|
| "foo.bar\nCrash" },
|
| };
|
| - COMPILE_ASSERT(kInterruptReasonCount == arraysize(kTestCases),
|
| - interrupt_reason_mismatch);
|
| + static_assert(kInterruptReasonCount == arraysize(kTestCases),
|
| + "interrupt reason mismatch");
|
|
|
| // Large tooltip width. Should be large enough to accommodate the entire
|
| // tooltip without truncation.
|
|
|