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

Side by Side Diff: webkit/fileapi/file_writer_delegate_unittest.cc

Issue 10447043: Move all webkit/fileapi tests to content_unittests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 //
5 // NOTE: These tests are run as part of "unit_tests" (in chrome/test/unit)
6 // rather than as part of test_shell_tests because they rely on being able
7 // to instantiate a MessageLoop of type TYPE_IO. test_shell_tests uses
8 // TYPE_UI, which URLRequest doesn't allow.
9 //
10 4
11 #include <string> 5 #include <string>
12 #include <vector> 6 #include <vector>
13 7
14 #include "base/basictypes.h" 8 #include "base/basictypes.h"
15 #include "base/bind.h" 9 #include "base/bind.h"
16 #include "base/message_loop.h" 10 #include "base/message_loop.h"
17 #include "base/scoped_temp_dir.h" 11 #include "base/scoped_temp_dir.h"
18 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
19 #include "net/base/io_buffer.h" 13 #include "net/base/io_buffer.h"
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 file_writer_delegate_.reset(); 438 file_writer_delegate_.reset();
445 439
446 EXPECT_EQ(pre_write_usage + allowed_growth, 440 EXPECT_EQ(pre_write_usage + allowed_growth,
447 test_helper_.GetCachedOriginUsage()); 441 test_helper_.GetCachedOriginUsage());
448 EXPECT_EQ(ComputeCurrentOriginUsage(), test_helper_.GetCachedOriginUsage()); 442 EXPECT_EQ(ComputeCurrentOriginUsage(), test_helper_.GetCachedOriginUsage());
449 EXPECT_EQ(kOverlap + allowed_growth, result_->bytes_written()); 443 EXPECT_EQ(kOverlap + allowed_growth, result_->bytes_written());
450 EXPECT_EQ(base::PLATFORM_FILE_ERROR_NO_SPACE, result_->status()); 444 EXPECT_EQ(base::PLATFORM_FILE_ERROR_NO_SPACE, result_->status());
451 } 445 }
452 446
453 } // namespace fileapi 447 } // namespace fileapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698