From d86db8a77ed1437ab192e0b995d4debcdeee945e Mon Sep 17 00:00:00 2001 From: "dmikurube@chromium.org" Date: Thu, 14 Apr 2011 12:48:10 +0000 Subject: Nit fix FileSystemOperationWriteTest about when exiting the thread and remove unnecessary lines. BUG=none TEST=none Review URL: http://codereview.chromium.org/6852021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81571 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/fileapi/file_system_operation_write_unittest.cc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/webkit/fileapi/file_system_operation_write_unittest.cc b/webkit/fileapi/file_system_operation_write_unittest.cc index 3c36168..c387f4a 100644 --- a/webkit/fileapi/file_system_operation_write_unittest.cc +++ b/webkit/fileapi/file_system_operation_write_unittest.cc @@ -8,8 +8,6 @@ // TYPE_UI, which URLRequest doesn't allow. // -#include "webkit/fileapi/file_system_operation.h" - #include "base/message_loop.h" #include "base/memory/scoped_ptr.h" #include "base/memory/scoped_temp_dir.h" @@ -24,11 +22,9 @@ #include "webkit/blob/blob_url_request_job.h" #include "webkit/fileapi/file_system_callback_dispatcher.h" #include "webkit/fileapi/file_system_file_util.h" +#include "webkit/fileapi/file_system_operation.h" namespace fileapi { -namespace { -class MockDispatcher; -} // namespace (anonymous) class FileSystemOperationWriteTest : public testing::Test { public: @@ -137,7 +133,8 @@ class MockDispatcher : public FileSystemCallbackDispatcher { virtual void DidWrite(int64 bytes, bool complete) { test_->add_bytes_written(bytes, complete); - MessageLoop::current()->Quit(); + if (complete) + MessageLoop::current()->Quit(); } private: -- cgit v1.1