| OLD | NEW |
| 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/files/file_path.h" | 6 #include "base/files/file_path.h" |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 | 159 |
| 160 #if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_MACOSX) | 160 #if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_MACOSX) |
| 161 // This test is flaky inside the Linux SUID sandbox: http://crbug.com/130116 | 161 // This test is flaky inside the Linux SUID sandbox: http://crbug.com/130116 |
| 162 // Also flaky on Mac: http://crbug.com/295193 | 162 // Also flaky on Mac: http://crbug.com/295193 |
| 163 IN_PROC_BROWSER_TEST_F(WorkerTest, DISABLED_LimitTotal) { | 163 IN_PROC_BROWSER_TEST_F(WorkerTest, DISABLED_LimitTotal) { |
| 164 #else | 164 #else |
| 165 // http://crbug.com/36800 | 165 // http://crbug.com/36800 |
| 166 IN_PROC_BROWSER_TEST_F(WorkerTest, LimitTotal) { | 166 IN_PROC_BROWSER_TEST_F(WorkerTest, LimitTotal) { |
| 167 #endif | 167 #endif |
| 168 if (base::SysInfo::AmountOfPhysicalMemoryMB() < 8192) { | 168 if (base::SysInfo::AmountOfPhysicalMemoryMB() < 8192) { |
| 169 LOG(INFO) << "WorkerTest.LimitTotal not running because it needs 8 GB RAM."; | 169 VLOG(0) << "WorkerTest.LimitTotal not running because it needs 8 GB RAM."; |
| 170 return; | 170 return; |
| 171 } | 171 } |
| 172 | 172 |
| 173 int max_workers_per_tab = WorkerServiceImpl::kMaxWorkersPerTabWhenSeparate; | 173 int max_workers_per_tab = WorkerServiceImpl::kMaxWorkersPerTabWhenSeparate; |
| 174 int total_workers = WorkerServiceImpl::kMaxWorkersWhenSeparate; | 174 int total_workers = WorkerServiceImpl::kMaxWorkersWhenSeparate; |
| 175 | 175 |
| 176 std::string query = base::StringPrintf("?count=%d", max_workers_per_tab); | 176 std::string query = base::StringPrintf("?count=%d", max_workers_per_tab); |
| 177 GURL url = GetTestURL("many_shared_workers.html", query); | 177 GURL url = GetTestURL("many_shared_workers.html", query); |
| 178 NavigateToURL(shell(), | 178 NavigateToURL(shell(), |
| 179 GURL(url.spec() + base::StringPrintf("&client_id=0"))); | 179 GURL(url.spec() + base::StringPrintf("&client_id=0"))); |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 IN_PROC_BROWSER_TEST_F(WorkerTest, PassMessagePortToSharedWorker) { | 285 IN_PROC_BROWSER_TEST_F(WorkerTest, PassMessagePortToSharedWorker) { |
| 286 RunTest("pass_messageport_to_sharedworker.html", ""); | 286 RunTest("pass_messageport_to_sharedworker.html", ""); |
| 287 } | 287 } |
| 288 | 288 |
| 289 IN_PROC_BROWSER_TEST_F(WorkerTest, | 289 IN_PROC_BROWSER_TEST_F(WorkerTest, |
| 290 PassMessagePortToSharedWorkerDontWaitForConnect) { | 290 PassMessagePortToSharedWorkerDontWaitForConnect) { |
| 291 RunTest("pass_messageport_to_sharedworker_dont_wait_for_connect.html", ""); | 291 RunTest("pass_messageport_to_sharedworker_dont_wait_for_connect.html", ""); |
| 292 } | 292 } |
| 293 | 293 |
| 294 } // namespace content | 294 } // namespace content |
| OLD | NEW |