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

Unified Diff: base/time/time_win_unittest.cc

Issue 1507413003: clang/win: Let some chromium_code targets build with -Wextra. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: content_browsertests 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
« no previous file with comments | « base/threading/thread_local_storage.cc ('k') | base/trace_event/trace_event_etw_export_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/time/time_win_unittest.cc
diff --git a/base/time/time_win_unittest.cc b/base/time/time_win_unittest.cc
index baaa32228a05cd3b681cb8e2c2818d9828af6ff6..e2bb893c199f5413747ef3fd1204e1db65a90149 100644
--- a/base/time/time_win_unittest.cc
+++ b/base/time/time_win_unittest.cc
@@ -150,11 +150,7 @@ TEST(TimeTicks, TimeGetTimeCaps) {
TIMECAPS caps;
MMRESULT status = timeGetDevCaps(&caps, sizeof(caps));
- EXPECT_EQ(TIMERR_NOERROR, status);
- if (status != TIMERR_NOERROR) {
- printf("Could not get timeGetDevCaps\n");
- return;
- }
+ ASSERT_EQ(static_cast<MMRESULT>(MMSYSERR_NOERROR), status);
EXPECT_GE(static_cast<int>(caps.wPeriodMin), 1);
EXPECT_GT(static_cast<int>(caps.wPeriodMax), 1);
« no previous file with comments | « base/threading/thread_local_storage.cc ('k') | base/trace_event/trace_event_etw_export_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698