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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 DISALLOW_COPY_AND_ASSIGN(LoadTestMessageHandler); | 57 DISALLOW_COPY_AND_ASSIGN(LoadTestMessageHandler); |
58 }; | 58 }; |
59 | 59 |
60 class NaClBrowserTestBase : public InProcessBrowserTest { | 60 class NaClBrowserTestBase : public InProcessBrowserTest { |
61 public: | 61 public: |
62 NaClBrowserTestBase(); | 62 NaClBrowserTestBase(); |
63 virtual ~NaClBrowserTestBase(); | 63 virtual ~NaClBrowserTestBase(); |
64 | 64 |
65 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; | 65 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; |
66 | 66 |
67 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE; | 67 virtual void SetUpOnMainThread() OVERRIDE; |
68 | 68 |
69 // What variant are we running - newlib, glibc, pnacl, etc? | 69 // What variant are we running - newlib, glibc, pnacl, etc? |
70 // This is used to compute what directory we're pulling data from, but it can | 70 // This is used to compute what directory we're pulling data from, but it can |
71 // also be used to affect the behavior of the test. | 71 // also be used to affect the behavior of the test. |
72 virtual base::FilePath::StringType Variant() = 0; | 72 virtual base::FilePath::StringType Variant() = 0; |
73 | 73 |
74 // Where are the files for this class of test located on disk? | 74 // Where are the files for this class of test located on disk? |
75 virtual bool GetDocumentRoot(base::FilePath* document_root); | 75 virtual bool GetDocumentRoot(base::FilePath* document_root); |
76 | 76 |
77 virtual bool IsAPnaclTest(); | 77 virtual bool IsAPnaclTest(); |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 IN_PROC_BROWSER_TEST_F(suite##Newlib, name) \ | 172 IN_PROC_BROWSER_TEST_F(suite##Newlib, name) \ |
173 body \ | 173 body \ |
174 IN_PROC_BROWSER_TEST_F(suite##GLibc, name) \ | 174 IN_PROC_BROWSER_TEST_F(suite##GLibc, name) \ |
175 body \ | 175 body \ |
176 IN_PROC_BROWSER_TEST_F(suite##Pnacl, MAYBE_PNACL(name)) \ | 176 IN_PROC_BROWSER_TEST_F(suite##Pnacl, MAYBE_PNACL(name)) \ |
177 body | 177 body |
178 | 178 |
179 #endif | 179 #endif |
180 | 180 |
181 #endif // CHROME_TEST_NACL_NACL_BROWSERTEST_UTIL_H_ | 181 #endif // CHROME_TEST_NACL_NACL_BROWSERTEST_UTIL_H_ |
OLD | NEW |