OLD | NEW |
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 "base/file_path.h" | 5 #include "base/file_path.h" |
6 #include "base/string_util.h" | 6 #include "base/string_util.h" |
7 #include "base/test/test_timeouts.h" | 7 #include "base/test/test_timeouts.h" |
8 #include "base/threading/platform_thread.h" | 8 #include "base/threading/platform_thread.h" |
9 #include "chrome/app/chrome_command_ids.h" | 9 #include "chrome/app/chrome_command_ids.h" |
10 #include "chrome/test/automation/automation_proxy.h" | 10 #include "chrome/test/automation/automation_proxy.h" |
11 #include "chrome/test/automation/browser_proxy.h" | 11 #include "chrome/test/automation/browser_proxy.h" |
12 #include "chrome/test/automation/tab_proxy.h" | 12 #include "chrome/test/automation/tab_proxy.h" |
13 #include "chrome/test/base/layout_test_http_server.h" | 13 #include "chrome/test/base/layout_test_http_server.h" |
14 #include "chrome/test/base/ui_test_utils.h" | 14 #include "chrome/test/base/ui_test_utils.h" |
15 #include "chrome/test/ui/ui_layout_test.h" | 15 #include "chrome/test/ui/ui_layout_test.h" |
16 #include "content/browser/worker_host/worker_service.h" | 16 #include "content/browser/worker_host/worker_service.h" |
17 #include "content/common/url_constants.h" | 17 #include "content/public/common/url_constants.h" |
18 #include "net/test/test_server.h" | 18 #include "net/test/test_server.h" |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 const char kTestCompleteCookie[] = "status"; | 22 const char kTestCompleteCookie[] = "status"; |
23 const char kTestCompleteSuccess[] = "OK"; | 23 const char kTestCompleteSuccess[] = "OK"; |
24 const FilePath::CharType* kTestDir = | 24 const FilePath::CharType* kTestDir = |
25 FILE_PATH_LITERAL("workers"); | 25 FILE_PATH_LITERAL("workers"); |
26 const FilePath::CharType* kManySharedWorkersFile = | 26 const FilePath::CharType* kManySharedWorkersFile = |
27 FILE_PATH_LITERAL("many_shared_workers.html"); | 27 FILE_PATH_LITERAL("many_shared_workers.html"); |
(...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
839 RunWorkerFileSystemLayoutTest("file-writer-truncate-extend.html"); | 839 RunWorkerFileSystemLayoutTest("file-writer-truncate-extend.html"); |
840 } | 840 } |
841 | 841 |
842 TEST_F(WorkerFileSystemTest, FileWriterSyncTruncateExtend) { | 842 TEST_F(WorkerFileSystemTest, FileWriterSyncTruncateExtend) { |
843 RunWorkerFileSystemLayoutTest("file-writer-sync-truncate-extend.html"); | 843 RunWorkerFileSystemLayoutTest("file-writer-sync-truncate-extend.html"); |
844 } | 844 } |
845 | 845 |
846 TEST_F(WorkerFileSystemTest, FileWriterSyncWriteOverlapped) { | 846 TEST_F(WorkerFileSystemTest, FileWriterSyncWriteOverlapped) { |
847 RunWorkerFileSystemLayoutTest("file-writer-sync-write-overlapped.html"); | 847 RunWorkerFileSystemLayoutTest("file-writer-sync-write-overlapped.html"); |
848 } | 848 } |
OLD | NEW |