OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
7 #include "base/eintr_wrapper.h" | 7 #include "base/eintr_wrapper.h" |
8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 protected: | 155 protected: |
156 rlim_t fd_limit_; | 156 rlim_t fd_limit_; |
157 #endif | 157 #endif |
158 public: | 158 public: |
159 PageCyclerTest() { | 159 PageCyclerTest() { |
160 show_window_ = true; | 160 show_window_ = true; |
161 | 161 |
162 // Expose garbage collection for the page cycler tests. | 162 // Expose garbage collection for the page cycler tests. |
163 launch_arguments_.AppendSwitchWithValue(switches::kJavaScriptFlags, | 163 launch_arguments_.AppendSwitchWithValue(switches::kJavaScriptFlags, |
164 L"--expose_gc"); | 164 L"--expose_gc"); |
| 165 // Page cycler tests need to run content scripts on file:// urls. |
| 166 launch_arguments_.AppendSwitch(switches::kEnableJsOnFileUrls); |
| 167 |
165 #if defined(OS_MACOSX) | 168 #if defined(OS_MACOSX) |
166 static rlim_t initial_fd_limit = GetFileDescriptorLimit(); | 169 static rlim_t initial_fd_limit = GetFileDescriptorLimit(); |
167 fd_limit_ = initial_fd_limit; | 170 fd_limit_ = initial_fd_limit; |
168 #endif | 171 #endif |
169 } | 172 } |
170 | 173 |
171 void SetUp() { | 174 void SetUp() { |
172 #if defined(OS_MACOSX) | 175 #if defined(OS_MACOSX) |
173 SetFileDescriptorLimit(fd_limit_); | 176 SetFileDescriptorLimit(fd_limit_); |
174 #endif | 177 #endif |
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 | 498 |
496 // http (localhost) tests | 499 // http (localhost) tests |
497 PAGE_CYCLER_HTTP_TESTS("moz", MozHttp); | 500 PAGE_CYCLER_HTTP_TESTS("moz", MozHttp); |
498 PAGE_CYCLER_HTTP_TESTS("intl1", Intl1Http); | 501 PAGE_CYCLER_HTTP_TESTS("intl1", Intl1Http); |
499 PAGE_CYCLER_HTTP_TESTS("intl2", Intl2Http); | 502 PAGE_CYCLER_HTTP_TESTS("intl2", Intl2Http); |
500 PAGE_CYCLER_HTTP_TESTS("dom", DomHttp); | 503 PAGE_CYCLER_HTTP_TESTS("dom", DomHttp); |
501 PAGE_CYCLER_HTTP_TESTS("bloat", BloatHttp); | 504 PAGE_CYCLER_HTTP_TESTS("bloat", BloatHttp); |
502 | 505 |
503 | 506 |
504 } // namespace | 507 } // namespace |
OLD | NEW |