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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 IN_PROC_BROWSER_TEST_F(suite##Newlib, name) \ | 166 IN_PROC_BROWSER_TEST_F(suite##Newlib, name) \ |
167 body \ | 167 body \ |
168 IN_PROC_BROWSER_TEST_F(suite##GLibc, name) \ | 168 IN_PROC_BROWSER_TEST_F(suite##GLibc, name) \ |
169 body \ | 169 body \ |
170 IN_PROC_BROWSER_TEST_F(suite##Pnacl, MAYBE_PNACL(name)) \ | 170 IN_PROC_BROWSER_TEST_F(suite##Pnacl, MAYBE_PNACL(name)) \ |
171 body | 171 body |
172 | 172 |
173 #endif | 173 #endif |
174 | 174 |
175 #endif // CHROME_TEST_NACL_NACL_BROWSERTEST_UTIL_H_ | 175 #endif // CHROME_TEST_NACL_NACL_BROWSERTEST_UTIL_H_ |
OLD | NEW |