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

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

Issue 14307012: webkit: Remove use of ALLOW_THIS_IN_INITIALIZER_LIST. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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) 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 4
5 #include "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/message_loop_proxy.h" 10 #include "base/message_loop_proxy.h"
(...skipping 20 matching lines...) Expand all
31 31
32 // Declared to shorten the variable names. 32 // Declared to shorten the variable names.
33 const quota::StorageType kTemporary = quota::kStorageTypeTemporary; 33 const quota::StorageType kTemporary = quota::kStorageTypeTemporary;
34 const quota::StorageType kPersistent = quota::kStorageTypePersistent; 34 const quota::StorageType kPersistent = quota::kStorageTypePersistent;
35 35
36 } // namespace 36 } // namespace
37 37
38 class FileSystemQuotaClientTest : public testing::Test { 38 class FileSystemQuotaClientTest : public testing::Test {
39 public: 39 public:
40 FileSystemQuotaClientTest() 40 FileSystemQuotaClientTest()
41 : weak_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), 41 : weak_factory_(this),
42 additional_callback_count_(0), 42 additional_callback_count_(0),
43 deletion_status_(quota::kQuotaStatusUnknown) { 43 deletion_status_(quota::kQuotaStatusUnknown) {
44 } 44 }
45 45
46 virtual void SetUp() { 46 virtual void SetUp() {
47 ASSERT_TRUE(data_dir_.CreateUniqueTempDir()); 47 ASSERT_TRUE(data_dir_.CreateUniqueTempDir());
48 file_system_context_ = CreateFileSystemContextForTesting( 48 file_system_context_ = CreateFileSystemContextForTesting(
49 NULL, data_dir_.path()); 49 NULL, data_dir_.path());
50 } 50 }
51 51
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 GetOriginUsage(quota_client.get(), 579 GetOriginUsage(quota_client.get(),
580 "https://bar.com/", 580 "https://bar.com/",
581 kPersistent)); 581 kPersistent));
582 EXPECT_EQ(64 + file_paths_cost_temporary_bar_https, 582 EXPECT_EQ(64 + file_paths_cost_temporary_bar_https,
583 GetOriginUsage(quota_client.get(), 583 GetOriginUsage(quota_client.get(),
584 "https://bar.com/", 584 "https://bar.com/",
585 kTemporary)); 585 kTemporary));
586 } 586 }
587 587
588 } // namespace fileapi 588 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_mount_point_provider_unittest.cc ('k') | webkit/fileapi/file_system_url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698