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

Side by Side Diff: content/browser/fileapi/file_system_browsertest.cc

Issue 15984016: Call scoped_refptr<T>::get() rather than relying on implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 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/command_line.h" 6 #include "base/command_line.h"
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/test/thread_test_helper.h" 9 #include "base/test/thread_test_helper.h"
10 #include "content/browser/web_contents/web_contents_impl.h" 10 #include "content/browser/web_contents/web_contents_impl.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 if (!BrowserThread::CurrentlyOn(BrowserThread::IO)) { 64 if (!BrowserThread::CurrentlyOn(BrowserThread::IO)) {
65 BrowserThread::PostTask( 65 BrowserThread::PostTask(
66 BrowserThread::IO, FROM_HERE, 66 BrowserThread::IO, FROM_HERE,
67 base::Bind(&FileSystemBrowserTestWithLowQuota::SetTempQuota, bytes, 67 base::Bind(&FileSystemBrowserTestWithLowQuota::SetTempQuota, bytes,
68 qm)); 68 qm));
69 return; 69 return;
70 } 70 }
71 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 71 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
72 qm->SetTemporaryGlobalOverrideQuota(bytes, quota::QuotaCallback()); 72 qm->SetTemporaryGlobalOverrideQuota(bytes, quota::QuotaCallback());
73 // Don't return until the quota has been set. 73 // Don't return until the quota has been set.
74 scoped_refptr<base::ThreadTestHelper> helper( 74 scoped_refptr<base::ThreadTestHelper> helper(new base::ThreadTestHelper(
75 new base::ThreadTestHelper( 75 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB).get()));
76 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB)));
77 ASSERT_TRUE(helper->Run()); 76 ASSERT_TRUE(helper->Run());
78 } 77 }
79 }; 78 };
80 79
81 IN_PROC_BROWSER_TEST_F(FileSystemBrowserTest, RequestTest) { 80 IN_PROC_BROWSER_TEST_F(FileSystemBrowserTest, RequestTest) {
82 SimpleTest(GetTestUrl("fileapi", "request_test.html")); 81 SimpleTest(GetTestUrl("fileapi", "request_test.html"));
83 } 82 }
84 83
85 IN_PROC_BROWSER_TEST_F(FileSystemBrowserTest, CreateTest) { 84 IN_PROC_BROWSER_TEST_F(FileSystemBrowserTest, CreateTest) {
86 SimpleTest(GetTestUrl("fileapi", "create_test.html")); 85 SimpleTest(GetTestUrl("fileapi", "create_test.html"));
87 } 86 }
88 87
89 IN_PROC_BROWSER_TEST_F(FileSystemBrowserTestWithLowQuota, QuotaTest) { 88 IN_PROC_BROWSER_TEST_F(FileSystemBrowserTestWithLowQuota, QuotaTest) {
90 SimpleTest(GetTestUrl("fileapi", "quota_test.html")); 89 SimpleTest(GetTestUrl("fileapi", "quota_test.html"));
91 } 90 }
92 91
93 } // namespace content 92 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/dom_storage/dom_storage_context_impl.cc ('k') | content/browser/geolocation/fake_access_token_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698