| 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 #ifndef CHROME_TEST_NACL_NACL_BROWSERTEST_UTIL_H_ | 5 #ifndef CHROME_TEST_NACL_NACL_BROWSERTEST_UTIL_H_ |
| 6 #define CHROME_TEST_NACL_NACL_BROWSERTEST_UTIL_H_ | 6 #define CHROME_TEST_NACL_NACL_BROWSERTEST_UTIL_H_ |
| 7 | 7 |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/test/base/in_process_browser_test.h" | 10 #include "chrome/test/base/in_process_browser_test.h" |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 virtual base::FilePath::StringType Variant() OVERRIDE; | 116 virtual base::FilePath::StringType Variant() OVERRIDE; |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 class NaClBrowserTestPnacl : public NaClBrowserTestBase { | 119 class NaClBrowserTestPnacl : public NaClBrowserTestBase { |
| 120 public: | 120 public: |
| 121 virtual base::FilePath::StringType Variant() OVERRIDE; | 121 virtual base::FilePath::StringType Variant() OVERRIDE; |
| 122 | 122 |
| 123 virtual bool IsAPnaclTest() OVERRIDE; | 123 virtual bool IsAPnaclTest() OVERRIDE; |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 class NaClBrowserTestPnaclNonSfi : public NaClBrowserTestBase { | |
| 127 public: | |
| 128 virtual base::FilePath::StringType Variant() OVERRIDE; | |
| 129 virtual void SetUpCommandLine(base::CommandLine* command_line) OVERRIDE; | |
| 130 }; | |
| 131 | |
| 132 // Class used to test that when --disable-pnacl is specified the PNaCl mime | 126 // Class used to test that when --disable-pnacl is specified the PNaCl mime |
| 133 // type is not available. | 127 // type is not available. |
| 134 class NaClBrowserTestPnaclDisabled : public NaClBrowserTestBase { | 128 class NaClBrowserTestPnaclDisabled : public NaClBrowserTestBase { |
| 135 public: | 129 public: |
| 136 virtual void SetUpCommandLine(base::CommandLine* command_line) OVERRIDE; | 130 virtual void SetUpCommandLine(base::CommandLine* command_line) OVERRIDE; |
| 137 | 131 |
| 138 virtual base::FilePath::StringType Variant() OVERRIDE; | 132 virtual base::FilePath::StringType Variant() OVERRIDE; |
| 139 | 133 |
| 140 virtual bool IsAPnaclTest() OVERRIDE; | 134 virtual bool IsAPnaclTest() OVERRIDE; |
| 141 | 135 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 IN_PROC_BROWSER_TEST_F(suite##Newlib, name) \ | 174 IN_PROC_BROWSER_TEST_F(suite##Newlib, name) \ |
| 181 body \ | 175 body \ |
| 182 IN_PROC_BROWSER_TEST_F(suite##GLibc, name) \ | 176 IN_PROC_BROWSER_TEST_F(suite##GLibc, name) \ |
| 183 body \ | 177 body \ |
| 184 IN_PROC_BROWSER_TEST_F(suite##Pnacl, MAYBE_PNACL(name)) \ | 178 IN_PROC_BROWSER_TEST_F(suite##Pnacl, MAYBE_PNACL(name)) \ |
| 185 body | 179 body |
| 186 | 180 |
| 187 #endif | 181 #endif |
| 188 | 182 |
| 189 #endif // CHROME_TEST_NACL_NACL_BROWSERTEST_UTIL_H_ | 183 #endif // CHROME_TEST_NACL_NACL_BROWSERTEST_UTIL_H_ |
| OLD | NEW |