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: webkit/fileapi/file_system_dir_url_request_job_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, 7 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 //
5 // NOTE: These tests are run as part of "unit_tests" (in chrome/test/unit)
6 // rather than as part of test_shell_tests because they rely on being able
7 // to instantiate a MessageLoop of type TYPE_IO. test_shell_tests uses
8 // TYPE_UI, which URLRequest doesn't allow.
9 //
10 4
11 #include "webkit/fileapi/file_system_dir_url_request_job.h" 5 #include "webkit/fileapi/file_system_dir_url_request_job.h"
12 6
13 #include <string> 7 #include <string>
14 8
15 #include "base/file_path.h" 9 #include "base/file_path.h"
16 #include "base/format_macros.h" 10 #include "base/format_macros.h"
17 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
18 #include "base/message_loop.h" 12 #include "base/message_loop.h"
19 #include "base/platform_file.h" 13 #include "base/platform_file.h"
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 CreateDirectory("foo"); 283 CreateDirectory("foo");
290 TestRequestNoRun(CreateFileSystemURL("foo/")); 284 TestRequestNoRun(CreateFileSystemURL("foo/"));
291 // Run StartAsync() and only StartAsync(). 285 // Run StartAsync() and only StartAsync().
292 MessageLoop::current()->DeleteSoon(FROM_HERE, request_.release()); 286 MessageLoop::current()->DeleteSoon(FROM_HERE, request_.release());
293 MessageLoop::current()->RunAllPending(); 287 MessageLoop::current()->RunAllPending();
294 // If we get here, success! we didn't crash! 288 // If we get here, success! we didn't crash!
295 } 289 }
296 290
297 } // namespace (anonymous) 291 } // namespace (anonymous)
298 } // namespace fileapi 292 } // namespace fileapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698