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/file_path.h" | 7 #include "base/file_path.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "base/process_util.h" | 10 #include "base/process_util.h" |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 #if defined(OS_MACOSX) | 155 #if defined(OS_MACOSX) |
156 rlim_t fd_limit_; | 156 rlim_t fd_limit_; |
157 #endif | 157 #endif |
158 public: | 158 public: |
159 PageCyclerTest() | 159 PageCyclerTest() |
160 : print_times_only_(false) { | 160 : print_times_only_(false) { |
161 show_window_ = true; | 161 show_window_ = true; |
162 | 162 |
163 | 163 |
164 // Expose garbage collection for the page cycler tests. | 164 // Expose garbage collection for the page cycler tests. |
165 launch_arguments_.AppendSwitchWithValue(switches::kJavaScriptFlags, | 165 launch_arguments_.AppendSwitchASCII(switches::kJavaScriptFlags, |
166 "--expose_gc"); | 166 "--expose_gc"); |
167 #if defined(OS_MACOSX) | 167 #if defined(OS_MACOSX) |
168 static rlim_t initial_fd_limit = GetFileDescriptorLimit(); | 168 static rlim_t initial_fd_limit = GetFileDescriptorLimit(); |
169 fd_limit_ = initial_fd_limit; | 169 fd_limit_ = initial_fd_limit; |
170 #endif | 170 #endif |
171 } | 171 } |
172 | 172 |
173 void SetUp() { | 173 void SetUp() { |
174 #if defined(OS_MACOSX) | 174 #if defined(OS_MACOSX) |
175 SetFileDescriptorLimit(fd_limit_); | 175 SetFileDescriptorLimit(fd_limit_); |
176 #endif | 176 #endif |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 PAGE_CYCLER_DATABASE_TESTS("insert-transactions", | 489 PAGE_CYCLER_DATABASE_TESTS("insert-transactions", |
490 InsertTransactions); | 490 InsertTransactions); |
491 PAGE_CYCLER_DATABASE_TESTS("update-transactions", | 491 PAGE_CYCLER_DATABASE_TESTS("update-transactions", |
492 UpdateTransactions); | 492 UpdateTransactions); |
493 PAGE_CYCLER_DATABASE_TESTS("delete-transactions", | 493 PAGE_CYCLER_DATABASE_TESTS("delete-transactions", |
494 DeleteTransactions); | 494 DeleteTransactions); |
495 PAGE_CYCLER_DATABASE_TESTS("pseudo-random-transactions", | 495 PAGE_CYCLER_DATABASE_TESTS("pseudo-random-transactions", |
496 PseudoRandomTransactions); | 496 PseudoRandomTransactions); |
497 | 497 |
498 } // namespace | 498 } // namespace |
OLD | NEW |