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/json/json_reader.h" | 9 #include "base/json/json_reader.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
323 base::FilePath::StringType NaClBrowserTestNonSfiMode::Variant() { | 323 base::FilePath::StringType NaClBrowserTestNonSfiMode::Variant() { |
324 return FILE_PATH_LITERAL("libc-free"); | 324 return FILE_PATH_LITERAL("libc-free"); |
325 } | 325 } |
326 | 326 |
327 void NaClBrowserTestNonSfiMode::SetUpCommandLine( | 327 void NaClBrowserTestNonSfiMode::SetUpCommandLine( |
328 base::CommandLine* command_line) { | 328 base::CommandLine* command_line) { |
329 NaClBrowserTestBase::SetUpCommandLine(command_line); | 329 NaClBrowserTestBase::SetUpCommandLine(command_line); |
330 command_line->AppendSwitch(switches::kEnableNaClNonSfiMode); | 330 command_line->AppendSwitch(switches::kEnableNaClNonSfiMode); |
331 } | 331 } |
332 | 332 |
333 base::FilePath::StringType NaClBrowserTestStatic::Variant() { | |
334 return FILE_PATH_LITERAL("static"); | |
335 } | |
336 | |
337 bool NaClBrowserTestStatic::GetDocumentRoot(base::FilePath* document_root) { | |
338 *document_root = base::FilePath(FILE_PATH_LITERAL("chrome/test/data/nacl")); | |
339 return true; | |
340 } | |
341 | |
342 base::FilePath::StringType NaClBrowserTestPnaclNonSfi::Variant() { | 333 base::FilePath::StringType NaClBrowserTestPnaclNonSfi::Variant() { |
343 return FILE_PATH_LITERAL("nonsfi"); | 334 return FILE_PATH_LITERAL("nonsfi"); |
344 } | 335 } |
345 | 336 |
346 void NaClBrowserTestPnaclNonSfi::SetUpCommandLine( | 337 void NaClBrowserTestPnaclNonSfi::SetUpCommandLine( |
347 base::CommandLine* command_line) { | 338 base::CommandLine* command_line) { |
348 NaClBrowserTestBase::SetUpCommandLine(command_line); | 339 NaClBrowserTestBase::SetUpCommandLine(command_line); |
349 command_line->AppendSwitch(switches::kEnableNaClNonSfiMode); | 340 command_line->AppendSwitch(switches::kEnableNaClNonSfiMode); |
350 } | 341 } |
342 | |
343 base::FilePath::StringType NaClBrowserTestStatic::Variant() { | |
Mark Seaborn
2014/05/01 23:28:33
No need to move these definitions.
hidehiko
2014/05/02 01:32:27
Done.
| |
344 return FILE_PATH_LITERAL("static"); | |
345 } | |
346 | |
347 bool NaClBrowserTestStatic::GetDocumentRoot(base::FilePath* document_root) { | |
348 *document_root = base::FilePath(FILE_PATH_LITERAL("chrome/test/data/nacl")); | |
349 return true; | |
350 } | |
OLD | NEW |