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

Side by Side Diff: webkit/fileapi/quota_file_util_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 #include "webkit/fileapi/quota_file_util.h" 5 #include "webkit/fileapi/quota_file_util.h"
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "base/memory/scoped_callback_factory.h" 8 #include "base/memory/scoped_callback_factory.h"
9 #include "base/memory/scoped_temp_dir.h"
10 #include "base/message_loop_proxy.h" 9 #include "base/message_loop_proxy.h"
11 #include "base/platform_file.h" 10 #include "base/platform_file.h"
11 #include "base/scoped_temp_dir.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 #include "webkit/fileapi/file_system_context.h" 13 #include "webkit/fileapi/file_system_context.h"
14 #include "webkit/fileapi/file_system_file_util.h" 14 #include "webkit/fileapi/file_system_file_util.h"
15 #include "webkit/fileapi/file_system_operation_context.h" 15 #include "webkit/fileapi/file_system_operation_context.h"
16 #include "webkit/fileapi/file_system_path_manager.h" 16 #include "webkit/fileapi/file_system_path_manager.h"
17 #include "webkit/fileapi/file_system_test_helper.h"
17 #include "webkit/fileapi/file_system_types.h" 18 #include "webkit/fileapi/file_system_types.h"
18 #include "webkit/fileapi/file_system_usage_cache.h" 19 #include "webkit/fileapi/file_system_usage_cache.h"
19 #include "webkit/fileapi/local_file_system_file_util.h" 20 #include "webkit/fileapi/local_file_system_file_util.h"
20 #include "webkit/fileapi/file_system_test_helper.h"
21 21
22 namespace fileapi { 22 namespace fileapi {
23 23
24 class QuotaFileUtilTest : public testing::Test { 24 class QuotaFileUtilTest : public testing::Test {
25 public: 25 public:
26 QuotaFileUtilTest() 26 QuotaFileUtilTest()
27 : callback_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) { 27 : callback_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) {
28 } 28 }
29 29
30 void SetUp() { 30 void SetUp() {
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 context.reset(NewContext()); 403 context.reset(NewContext());
404 context->set_allowed_bytes_growth(QuotaFileUtil::kNoLimit); 404 context->set_allowed_bytes_growth(QuotaFileUtil::kNoLimit);
405 ASSERT_EQ(base::PLATFORM_FILE_OK, 405 ASSERT_EQ(base::PLATFORM_FILE_OK,
406 QuotaFileUtil::GetInstance()->Delete(context.get(), 406 QuotaFileUtil::GetInstance()->Delete(context.get(),
407 Path(dir), 407 Path(dir),
408 true)); 408 true));
409 ASSERT_EQ(0, GetCachedUsage()); 409 ASSERT_EQ(0, GetCachedUsage());
410 } 410 }
411 411
412 } // namespace fileapi 412 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/fileapi/obfuscated_file_system_file_util_unittest.cc ('k') | webkit/fileapi/sandbox_mount_point_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698