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

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: Try to fix ChromeOS build 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 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 file_writer_delegate_.reset(); 453 file_writer_delegate_.reset();
460 454
461 EXPECT_EQ(pre_write_usage + allowed_growth, 455 EXPECT_EQ(pre_write_usage + allowed_growth,
462 test_helper_.GetCachedOriginUsage()); 456 test_helper_.GetCachedOriginUsage());
463 EXPECT_EQ(ComputeCurrentOriginUsage(), test_helper_.GetCachedOriginUsage()); 457 EXPECT_EQ(ComputeCurrentOriginUsage(), test_helper_.GetCachedOriginUsage());
464 EXPECT_EQ(kOverlap + allowed_growth, result_->bytes_written()); 458 EXPECT_EQ(kOverlap + allowed_growth, result_->bytes_written());
465 EXPECT_EQ(base::PLATFORM_FILE_ERROR_NO_SPACE, result_->status()); 459 EXPECT_EQ(base::PLATFORM_FILE_ERROR_NO_SPACE, result_->status());
466 } 460 }
467 461
468 } // namespace fileapi 462 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_url_request_job_unittest.cc ('k') | webkit/fileapi/isolated_file_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698