OLD | NEW |
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 Loading... |
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 |
OLD | NEW |