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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 private: | 53 private: |
54 bool test_passed_; | 54 bool test_passed_; |
55 | 55 |
56 DISALLOW_COPY_AND_ASSIGN(LoadTestMessageHandler); | 56 DISALLOW_COPY_AND_ASSIGN(LoadTestMessageHandler); |
57 }; | 57 }; |
58 | 58 |
59 class NaClBrowserTestBase : public InProcessBrowserTest { | 59 class NaClBrowserTestBase : public InProcessBrowserTest { |
60 public: | 60 public: |
61 NaClBrowserTestBase(); | 61 NaClBrowserTestBase(); |
62 virtual ~NaClBrowserTestBase(); | 62 ~NaClBrowserTestBase() override; |
63 | 63 |
64 void SetUpCommandLine(base::CommandLine* command_line) override; | 64 void SetUpCommandLine(base::CommandLine* command_line) override; |
65 | 65 |
66 void SetUpOnMainThread() override; | 66 void SetUpOnMainThread() override; |
67 | 67 |
68 // What variant are we running - newlib, glibc, pnacl, etc? | 68 // What variant are we running - newlib, glibc, pnacl, etc? |
69 // This is used to compute what directory we're pulling data from, but it can | 69 // This is used to compute what directory we're pulling data from, but it can |
70 // also be used to affect the behavior of the test. | 70 // also be used to affect the behavior of the test. |
71 virtual base::FilePath::StringType Variant() = 0; | 71 virtual base::FilePath::StringType Variant() = 0; |
72 | 72 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 | 191 |
192 #define NACL_BROWSER_TEST_F(suite, name, body) \ | 192 #define NACL_BROWSER_TEST_F(suite, name, body) \ |
193 IN_PROC_BROWSER_TEST_F(suite##Newlib, name) \ | 193 IN_PROC_BROWSER_TEST_F(suite##Newlib, name) \ |
194 body \ | 194 body \ |
195 IN_PROC_BROWSER_TEST_F(suite##GLibc, MAYBE_GLIBC(name)) \ | 195 IN_PROC_BROWSER_TEST_F(suite##GLibc, MAYBE_GLIBC(name)) \ |
196 body \ | 196 body \ |
197 IN_PROC_BROWSER_TEST_F(suite##Pnacl, MAYBE_PNACL(name)) \ | 197 IN_PROC_BROWSER_TEST_F(suite##Pnacl, MAYBE_PNACL(name)) \ |
198 body | 198 body |
199 | 199 |
200 #endif // CHROME_TEST_NACL_NACL_BROWSERTEST_UTIL_H_ | 200 #endif // CHROME_TEST_NACL_NACL_BROWSERTEST_UTIL_H_ |
OLD | NEW |