summaryrefslogtreecommitdiffstats
path: root/webkit/fileapi
diff options
context:
space:
mode:
authordmikurube@chromium.org <dmikurube@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-14 12:48:10 +0000
committerdmikurube@chromium.org <dmikurube@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-14 12:48:10 +0000
commitd86db8a77ed1437ab192e0b995d4debcdeee945e (patch)
tree98f6d1283f9177f045e20193abd2c615d2328395 /webkit/fileapi
parent0d60f0199b8be7f6597aae7796de8f1c4b2534bb (diff)
downloadchromium_src-d86db8a77ed1437ab192e0b995d4debcdeee945e.zip
chromium_src-d86db8a77ed1437ab192e0b995d4debcdeee945e.tar.gz
chromium_src-d86db8a77ed1437ab192e0b995d4debcdeee945e.tar.bz2
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
Diffstat (limited to 'webkit/fileapi')
-rw-r--r--webkit/fileapi/file_system_operation_write_unittest.cc9
1 files 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: