diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-13 23:23:47 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-13 23:23:47 +0000 |
commit | ee5e3797e086af04cc8fc23ec32f8b7cc457da01 (patch) | |
tree | c3510eb56b5f3bd344e2b027200eb6d2087d7c2e /base/directory_watcher_unittest.cc | |
parent | 332c74a3af4ce2f33709f2e080b4a7f498759629 (diff) | |
download | chromium_src-ee5e3797e086af04cc8fc23ec32f8b7cc457da01.zip chromium_src-ee5e3797e086af04cc8fc23ec32f8b7cc457da01.tar.gz chromium_src-ee5e3797e086af04cc8fc23ec32f8b7cc457da01.tar.bz2 |
Fix a whole bunch of style nits.
(Long term intention is to add a subset of cpplint.py to the presubmit script.)
Review URL: http://codereview.chromium.org/276008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28914 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/directory_watcher_unittest.cc')
-rw-r--r-- | base/directory_watcher_unittest.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/base/directory_watcher_unittest.cc b/base/directory_watcher_unittest.cc index 625c5425..31a0dc4 100644 --- a/base/directory_watcher_unittest.cc +++ b/base/directory_watcher_unittest.cc @@ -118,7 +118,7 @@ class DirectoryWatcherTest : public testing::Test { class TestDelegate : public DirectoryWatcher::Delegate { public: - TestDelegate(DirectoryWatcherTest* test) + explicit TestDelegate(DirectoryWatcherTest* test) : test_(test), got_notification_(false), original_thread_id_(PlatformThread::CurrentId()) { @@ -309,7 +309,13 @@ TEST_F(DirectoryWatcherTest, MultipleWatchersSingleFile) { TEST_F(DirectoryWatcherTest, MultipleWatchersDifferentFiles) { const int kNumberOfWatchers = 5; DirectoryWatcher watchers[kNumberOfWatchers]; - TestDelegate delegates[kNumberOfWatchers] = {this, this, this, this, this}; + TestDelegate delegates[kNumberOfWatchers] = { + TestDelegate(this), + TestDelegate(this), + TestDelegate(this), + TestDelegate(this), + TestDelegate(this) + }; FilePath subdirs[kNumberOfWatchers]; for (int i = 0; i < kNumberOfWatchers; i++) { subdirs[i] = CreateTestDirDirectoryASCII("Dir" + IntToString(i), false); |