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

Side by Side Diff: chrome/test/nacl/nacl_browsertest_util.cc

Issue 21150006: Introduce --cancel-first-run and reduce the strength of --no-first-run. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: --skip-first-run => --no-first-run Created 7 years, 4 months 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/installer/setup/setup_main.cc ('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) 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 "chrome/test/nacl/nacl_browsertest_util.h" 5 #include "chrome/test/nacl/nacl_browsertest_util.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/environment.h" 9 #include "base/environment.h"
10 #include "base/json/json_reader.h" 10 #include "base/json/json_reader.h"
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 } 196 }
197 } 197 }
198 198
199 NaClBrowserTestBase::NaClBrowserTestBase() { 199 NaClBrowserTestBase::NaClBrowserTestBase() {
200 } 200 }
201 201
202 NaClBrowserTestBase::~NaClBrowserTestBase() { 202 NaClBrowserTestBase::~NaClBrowserTestBase() {
203 } 203 }
204 204
205 void NaClBrowserTestBase::SetUpCommandLine(CommandLine* command_line) { 205 void NaClBrowserTestBase::SetUpCommandLine(CommandLine* command_line) {
206 command_line->AppendSwitch(switches::kNoFirstRun);
207 command_line->AppendSwitch(switches::kEnableNaCl); 206 command_line->AppendSwitch(switches::kEnableNaCl);
208 } 207 }
209 208
210 void NaClBrowserTestBase::SetUpInProcessBrowserTestFixture() { 209 void NaClBrowserTestBase::SetUpInProcessBrowserTestFixture() {
211 // Sanity check. 210 // Sanity check.
212 base::FilePath plugin_lib; 211 base::FilePath plugin_lib;
213 ASSERT_TRUE(PathService::Get(chrome::FILE_NACL_PLUGIN, &plugin_lib)); 212 ASSERT_TRUE(PathService::Get(chrome::FILE_NACL_PLUGIN, &plugin_lib));
214 ASSERT_TRUE(base::PathExists(plugin_lib)) << plugin_lib.value(); 213 ASSERT_TRUE(base::PathExists(plugin_lib)) << plugin_lib.value();
215 214
216 ASSERT_TRUE(StartTestServer()) << "Cannot start test server."; 215 ASSERT_TRUE(StartTestServer()) << "Cannot start test server.";
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 } 326 }
328 327
329 base::FilePath::StringType NaClBrowserTestStatic::Variant() { 328 base::FilePath::StringType NaClBrowserTestStatic::Variant() {
330 return FILE_PATH_LITERAL("static"); 329 return FILE_PATH_LITERAL("static");
331 } 330 }
332 331
333 bool NaClBrowserTestStatic::GetDocumentRoot(base::FilePath* document_root) { 332 bool NaClBrowserTestStatic::GetDocumentRoot(base::FilePath* document_root) {
334 *document_root = base::FilePath(FILE_PATH_LITERAL("chrome/test/data/nacl")); 333 *document_root = base::FilePath(FILE_PATH_LITERAL("chrome/test/data/nacl"));
335 return true; 334 return true;
336 } 335 }
OLDNEW
« no previous file with comments | « chrome/installer/setup/setup_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698