| 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 "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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |