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/file_path.h" | 8 #include "base/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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 bool test_passed_; | 55 bool test_passed_; |
56 | 56 |
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 SetUp() OVERRIDE; |
| 66 |
65 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; | 67 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; |
66 | 68 |
67 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE; | 69 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE; |
68 | 70 |
69 // What variant are we running - newlib, glibc, pnacl, etc? | 71 // 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 | 72 // 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. | 73 // also be used to affect the behavior of the test. |
72 virtual FilePath::StringType Variant() = 0; | 74 virtual FilePath::StringType Variant() = 0; |
73 | 75 |
74 virtual bool IsPnacl(); | 76 virtual bool IsPnacl(); |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 IN_PROC_BROWSER_TEST_F(suite##Newlib, name) \ | 146 IN_PROC_BROWSER_TEST_F(suite##Newlib, name) \ |
145 body \ | 147 body \ |
146 IN_PROC_BROWSER_TEST_F(suite##GLibc, name) \ | 148 IN_PROC_BROWSER_TEST_F(suite##GLibc, name) \ |
147 body \ | 149 body \ |
148 IN_PROC_BROWSER_TEST_F(suite##Pnacl, name) \ | 150 IN_PROC_BROWSER_TEST_F(suite##Pnacl, name) \ |
149 body | 151 body |
150 | 152 |
151 #endif | 153 #endif |
152 | 154 |
153 #endif // CHROME_TEST_NACL_NACL_BROWSERTEST_UTIL_H_ | 155 #endif // CHROME_TEST_NACL_NACL_BROWSERTEST_UTIL_H_ |
OLD | NEW |