Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: chrome/test/page_cycler/page_cycler_test.cc

Issue 402029: Don't allow content scripts to execute on file:// urls.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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
« no previous file with comments | « chrome/test/data/extensions/ui/create_extension_detail_value_expected_output/good-extension3.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/ui/create_extension_detail_value_expected_output/good-extension3.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698