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

Side by Side Diff: content/browser/in_process_webkit/indexed_db_quota_client_unittest.cc

Issue 9032010: base::Bind: Remove scoped_callback_factory.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 12 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
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | webkit/appcache/appcache_quota_client_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <map> 5 #include <map>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/memory/scoped_callback_factory.h"
11 #include "base/message_loop.h" 10 #include "base/message_loop.h"
12 #include "base/message_loop_proxy.h" 11 #include "base/message_loop_proxy.h"
13 #include "base/scoped_temp_dir.h" 12 #include "base/scoped_temp_dir.h"
14 #include "content/browser/browser_thread_impl.h" 13 #include "content/browser/browser_thread_impl.h"
15 #include "content/browser/in_process_webkit/indexed_db_context.h" 14 #include "content/browser/in_process_webkit/indexed_db_context.h"
16 #include "content/browser/in_process_webkit/indexed_db_quota_client.h" 15 #include "content/browser/in_process_webkit/indexed_db_quota_client.h"
17 #include "content/browser/in_process_webkit/webkit_context.h" 16 #include "content/browser/in_process_webkit/webkit_context.h"
18 #include "content/test/test_browser_context.h" 17 #include "content/test/test_browser_context.h"
19 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
20 #include "webkit/database/database_util.h" 19 #include "webkit/database/database_util.h"
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 AddFakeIndexedDB(kOriginA, 1000); 232 AddFakeIndexedDB(kOriginA, 1000);
234 AddFakeIndexedDB(kOriginB, 50); 233 AddFakeIndexedDB(kOriginB, 50);
235 EXPECT_EQ(1000, GetOriginUsage(&client, kOriginA, kTemp)); 234 EXPECT_EQ(1000, GetOriginUsage(&client, kOriginA, kTemp));
236 EXPECT_EQ(50, GetOriginUsage(&client, kOriginB, kTemp)); 235 EXPECT_EQ(50, GetOriginUsage(&client, kOriginB, kTemp));
237 236
238 quota::QuotaStatusCode delete_status = DeleteOrigin(&client, kOriginA); 237 quota::QuotaStatusCode delete_status = DeleteOrigin(&client, kOriginA);
239 EXPECT_EQ(quota::kQuotaStatusOk, delete_status); 238 EXPECT_EQ(quota::kQuotaStatusOk, delete_status);
240 EXPECT_EQ(0, GetOriginUsage(&client, kOriginA, kTemp)); 239 EXPECT_EQ(0, GetOriginUsage(&client, kOriginA, kTemp));
241 EXPECT_EQ(50, GetOriginUsage(&client, kOriginB, kTemp)); 240 EXPECT_EQ(50, GetOriginUsage(&client, kOriginB, kTemp));
242 } 241 }
OLDNEW
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | webkit/appcache/appcache_quota_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698