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

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

Issue 7048007: Move scoped_temp_dir and scoped_native_library back from base/memory to base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unknwn Created 9 years, 7 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // 4 //
5 // NOTE: These tests are run as part of "unit_tests" (in chrome/test/unit) 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 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 7 // to instantiate a MessageLoop of type TYPE_IO. test_shell_tests uses
8 // TYPE_UI, which URLRequest doesn't allow. 8 // TYPE_UI, which URLRequest doesn't allow.
9 // 9 //
10 10
11 #include "base/memory/scoped_ptr.h"
12 #include "base/message_loop.h"
11 #include "base/message_loop.h" 13 #include "base/message_loop.h"
12 #include "base/message_loop_proxy.h" 14 #include "base/message_loop_proxy.h"
13 #include "base/memory/scoped_ptr.h" 15 #include "base/scoped_temp_dir.h"
14 #include "base/memory/scoped_temp_dir.h"
15 #include "base/message_loop.h"
16 #include "googleurl/src/gurl.h" 16 #include "googleurl/src/gurl.h"
17 #include "net/url_request/url_request.h" 17 #include "net/url_request/url_request.h"
18 #include "net/url_request/url_request_context.h" 18 #include "net/url_request/url_request_context.h"
19 #include "net/url_request/url_request_job.h" 19 #include "net/url_request/url_request_job.h"
20 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
21 #include "webkit/blob/blob_data.h" 21 #include "webkit/blob/blob_data.h"
22 #include "webkit/blob/blob_storage_controller.h" 22 #include "webkit/blob/blob_storage_controller.h"
23 #include "webkit/blob/blob_url_request_job.h" 23 #include "webkit/blob/blob_url_request_job.h"
24 #include "webkit/fileapi/file_system_callback_dispatcher.h" 24 #include "webkit/fileapi/file_system_callback_dispatcher.h"
25 #include "webkit/fileapi/file_system_context.h" 25 #include "webkit/fileapi/file_system_context.h"
26 #include "webkit/fileapi/file_system_file_util.h" 26 #include "webkit/fileapi/file_system_file_util.h"
27 #include "webkit/fileapi/file_system_operation.h" 27 #include "webkit/fileapi/file_system_operation.h"
28 #include "webkit/fileapi/file_system_path_manager.h" 28 #include "webkit/fileapi/file_system_path_manager.h"
29 #include "webkit/fileapi/file_system_test_helper.h"
29 #include "webkit/fileapi/file_system_util.h" 30 #include "webkit/fileapi/file_system_util.h"
30 #include "webkit/fileapi/local_file_system_file_util.h" 31 #include "webkit/fileapi/local_file_system_file_util.h"
31 #include "webkit/fileapi/file_system_test_helper.h"
32 #include "webkit/quota/quota_manager.h" 32 #include "webkit/quota/quota_manager.h"
33 33
34 using quota::QuotaManager; 34 using quota::QuotaManager;
35 35
36 namespace fileapi { 36 namespace fileapi {
37 37
38 namespace { 38 namespace {
39 39
40 class MockQuotaManager : public QuotaManager { 40 class MockQuotaManager : public QuotaManager {
41 public: 41 public:
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 url_request_context->blob_storage_controller()->UnregisterBlobUrl(blob_url); 332 url_request_context->blob_storage_controller()->UnregisterBlobUrl(blob_url);
333 333
334 EXPECT_EQ(10, bytes_written()); 334 EXPECT_EQ(10, bytes_written());
335 EXPECT_EQ(base::PLATFORM_FILE_ERROR_NO_SPACE, status()); 335 EXPECT_EQ(base::PLATFORM_FILE_ERROR_NO_SPACE, status());
336 EXPECT_TRUE(complete()); 336 EXPECT_TRUE(complete());
337 } 337 }
338 338
339 // TODO(ericu,dmikurube): Add tests for Cancel. 339 // TODO(ericu,dmikurube): Add tests for Cancel.
340 340
341 } // namespace fileapi 341 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_operation_unittest.cc ('k') | webkit/fileapi/file_system_origin_database_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698