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

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

Issue 10447043: Move all webkit/fileapi tests to content_unittests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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/bind.h" 5 #include "base/bind.h"
6 #include "base/basictypes.h" 6 #include "base/basictypes.h"
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/message_loop_proxy.h" 9 #include "base/message_loop_proxy.h"
10 #include "base/platform_file.h" 10 #include "base/platform_file.h"
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 242
243 void OnGetAdditionalUsage(int64 usage_unused) { 243 void OnGetAdditionalUsage(int64 usage_unused) {
244 ++additional_callback_count_; 244 ++additional_callback_count_;
245 } 245 }
246 246
247 void OnDeleteOrigin(quota::QuotaStatusCode status) { 247 void OnDeleteOrigin(quota::QuotaStatusCode status) {
248 deletion_status_ = status; 248 deletion_status_ = status;
249 } 249 }
250 250
251 ScopedTempDir data_dir_; 251 ScopedTempDir data_dir_;
252 MessageLoop message_loop_;
252 scoped_refptr<FileSystemContext> file_system_context_; 253 scoped_refptr<FileSystemContext> file_system_context_;
253 base::WeakPtrFactory<FileSystemQuotaClientTest> weak_factory_; 254 base::WeakPtrFactory<FileSystemQuotaClientTest> weak_factory_;
254 int64 usage_; 255 int64 usage_;
255 int additional_callback_count_; 256 int additional_callback_count_;
256 std::set<GURL> origins_; 257 std::set<GURL> origins_;
257 quota::StorageType type_; 258 quota::StorageType type_;
258 quota::QuotaStatusCode deletion_status_; 259 quota::QuotaStatusCode deletion_status_;
259 260
260 DISALLOW_COPY_AND_ASSIGN(FileSystemQuotaClientTest); 261 DISALLOW_COPY_AND_ASSIGN(FileSystemQuotaClientTest);
261 }; 262 };
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 GetOriginUsage(quota_client.get(), 579 GetOriginUsage(quota_client.get(),
579 "https://bar.com/", 580 "https://bar.com/",
580 kPersistent)); 581 kPersistent));
581 EXPECT_EQ(64 + file_paths_cost_temporary_bar_https, 582 EXPECT_EQ(64 + file_paths_cost_temporary_bar_https,
582 GetOriginUsage(quota_client.get(), 583 GetOriginUsage(quota_client.get(),
583 "https://bar.com/", 584 "https://bar.com/",
584 kTemporary)); 585 kTemporary));
585 } 586 }
586 587
587 } // namespace fileapi 588 } // namespace fileapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698