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

Unified Diff: base/message_loop_unittest.cc

Issue 3062003: Random bits of header and whitespace cleanup. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 5 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 | « no previous file | chrome/browser/views/tab_contents/tab_contents_drag_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_loop_unittest.cc
===================================================================
--- base/message_loop_unittest.cc (revision 53407)
+++ base/message_loop_unittest.cc (working copy)
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <vector>
+
#include "base/eintr_wrapper.h"
#include "base/logging.h"
#include "base/message_loop.h"
@@ -839,8 +841,8 @@
for (;;) {
HWND button = FindWindowEx(window, NULL, L"Button", NULL);
if (button != NULL) {
- EXPECT_TRUE(0 == SendMessage(button, WM_LBUTTONDOWN, 0, 0));
- EXPECT_TRUE(0 == SendMessage(button, WM_LBUTTONUP, 0, 0));
+ EXPECT_EQ(0, SendMessage(button, WM_LBUTTONDOWN, 0, 0));
+ EXPECT_EQ(0, SendMessage(button, WM_LBUTTONUP, 0, 0));
break;
}
}
@@ -1459,7 +1461,7 @@
class DummyTask : public Task {
public:
- DummyTask(int num_tasks) : num_tasks_(num_tasks) {}
+ explicit DummyTask(int num_tasks) : num_tasks_(num_tasks) {}
virtual void Run() {
if (num_tasks_ > 1) {
@@ -1477,7 +1479,7 @@
class DummyTaskObserver : public MessageLoop::TaskObserver {
public:
- DummyTaskObserver(int num_tasks)
+ explicit DummyTaskObserver(int num_tasks)
: num_tasks_started_(0),
num_tasks_processed_(0),
num_tasks_(num_tasks) {}
@@ -1593,7 +1595,7 @@
// pipe() is just the easiest way to do it.
int pipefds[2];
int err = pipe(pipefds);
- ASSERT_TRUE(err == 0);
+ ASSERT_EQ(0, err);
int fd = pipefds[1];
{
// Arrange for controller to live longer than message loop.
@@ -1618,7 +1620,7 @@
// (Errors only showed up in valgrind.)
int pipefds[2];
int err = pipe(pipefds);
- ASSERT_TRUE(err == 0);
+ ASSERT_EQ(0, err);
int fd = pipefds[1];
{
// Arrange for message loop to live longer than controller.
« no previous file with comments | « no previous file | chrome/browser/views/tab_contents/tab_contents_drag_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698