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

Side by Side Diff: webkit/database/database_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, 8 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 <map> 5 #include <map>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 const GURL kOriginA; 122 const GURL kOriginA;
123 const GURL kOriginB; 123 const GURL kOriginB;
124 const GURL kOriginOther; 124 const GURL kOriginOther;
125 125
126 DatabaseQuotaClientTest() 126 DatabaseQuotaClientTest()
127 : kOriginA("http://host"), 127 : kOriginA("http://host"),
128 kOriginB("http://host:8000"), 128 kOriginB("http://host:8000"),
129 kOriginOther("http://other"), 129 kOriginOther("http://other"),
130 usage_(0), 130 usage_(0),
131 mock_tracker_(new MockDatabaseTracker), 131 mock_tracker_(new MockDatabaseTracker),
132 weak_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) { 132 weak_factory_(this) {
133 } 133 }
134 134
135 int64 GetOriginUsage( 135 int64 GetOriginUsage(
136 quota::QuotaClient* client, 136 quota::QuotaClient* client,
137 const GURL& origin, 137 const GURL& origin,
138 quota::StorageType type) { 138 quota::StorageType type) {
139 usage_ = 0; 139 usage_ = 0;
140 client->GetOriginUsage( 140 client->GetOriginUsage(
141 origin, type, 141 origin, type,
142 base::Bind(&DatabaseQuotaClientTest::OnGetOriginUsageComplete, 142 base::Bind(&DatabaseQuotaClientTest::OnGetOriginUsageComplete,
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 mock_tracker()->set_async_delete(false); 282 mock_tracker()->set_async_delete(false);
283 EXPECT_TRUE(DeleteOriginData(&client, kTemp, kOriginA)); 283 EXPECT_TRUE(DeleteOriginData(&client, kTemp, kOriginA));
284 EXPECT_EQ(1, mock_tracker()->delete_called_count()); 284 EXPECT_EQ(1, mock_tracker()->delete_called_count());
285 285
286 mock_tracker()->set_async_delete(true); 286 mock_tracker()->set_async_delete(true);
287 EXPECT_TRUE(DeleteOriginData(&client, kTemp, kOriginA)); 287 EXPECT_TRUE(DeleteOriginData(&client, kTemp, kOriginA));
288 EXPECT_EQ(2, mock_tracker()->delete_called_count()); 288 EXPECT_EQ(2, mock_tracker()->delete_called_count());
289 } 289 }
290 290
291 } // namespace webkit_database 291 } // namespace webkit_database
OLDNEW
« no previous file with comments | « webkit/chromeos/fileapi/remote_file_stream_writer.cc ('k') | webkit/dom_storage/dom_storage_cached_area.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698