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

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

Issue 2133083002: Remove all remaining traces of MessageLoopProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
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 <stdint.h> 5 #include <stdint.h>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 BrowserThread::PostTask( 69 BrowserThread::PostTask(
70 BrowserThread::IO, FROM_HERE, 70 BrowserThread::IO, FROM_HERE,
71 base::Bind(&FileSystemBrowserTestWithLowQuota::SetTempQuota, bytes, 71 base::Bind(&FileSystemBrowserTestWithLowQuota::SetTempQuota, bytes,
72 qm)); 72 qm));
73 return; 73 return;
74 } 74 }
75 DCHECK_CURRENTLY_ON(BrowserThread::IO); 75 DCHECK_CURRENTLY_ON(BrowserThread::IO);
76 qm->SetTemporaryGlobalOverrideQuota(bytes, storage::QuotaCallback()); 76 qm->SetTemporaryGlobalOverrideQuota(bytes, storage::QuotaCallback());
77 // Don't return until the quota has been set. 77 // Don't return until the quota has been set.
78 scoped_refptr<base::ThreadTestHelper> helper(new base::ThreadTestHelper( 78 scoped_refptr<base::ThreadTestHelper> helper(new base::ThreadTestHelper(
79 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB).get())); 79 BrowserThread::GetTaskRunnerForThread(BrowserThread::DB).get()));
80 ASSERT_TRUE(helper->Run()); 80 ASSERT_TRUE(helper->Run());
81 } 81 }
82 }; 82 };
83 83
84 IN_PROC_BROWSER_TEST_F(FileSystemBrowserTest, RequestTest) { 84 IN_PROC_BROWSER_TEST_F(FileSystemBrowserTest, RequestTest) {
85 SimpleTest(GetTestUrl("fileapi", "request_test.html")); 85 SimpleTest(GetTestUrl("fileapi", "request_test.html"));
86 } 86 }
87 87
88 IN_PROC_BROWSER_TEST_F(FileSystemBrowserTest, CreateTest) { 88 IN_PROC_BROWSER_TEST_F(FileSystemBrowserTest, CreateTest) {
89 SimpleTest(GetTestUrl("fileapi", "create_test.html")); 89 SimpleTest(GetTestUrl("fileapi", "create_test.html"));
90 } 90 }
91 91
92 IN_PROC_BROWSER_TEST_F(FileSystemBrowserTestWithLowQuota, QuotaTest) { 92 IN_PROC_BROWSER_TEST_F(FileSystemBrowserTestWithLowQuota, QuotaTest) {
93 SimpleTest(GetTestUrl("fileapi", "quota_test.html")); 93 SimpleTest(GetTestUrl("fileapi", "quota_test.html"));
94 } 94 }
95 95
96 } // namespace content 96 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698