| 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/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "build/build_config.h" |
| 10 #include "chrome/test/base/in_process_browser_test.h" | 12 #include "chrome/test/base/in_process_browser_test.h" |
| 11 #include "content/public/test/javascript_test_observer.h" | 13 #include "content/public/test/javascript_test_observer.h" |
| 12 #include "net/test/embedded_test_server/embedded_test_server.h" | 14 #include "net/test/embedded_test_server/embedded_test_server.h" |
| 13 | 15 |
| 14 // A helper base class that decodes structured automation messages of the form: | 16 // A helper base class that decodes structured automation messages of the form: |
| 15 // {"type": type_name, ...} | 17 // {"type": type_name, ...} |
| 16 class StructuredMessageHandler : public content::TestMessageHandler { | 18 class StructuredMessageHandler : public content::TestMessageHandler { |
| 17 public: | 19 public: |
| 18 MessageResponse HandleMessage(const std::string& json) override; | 20 MessageResponse HandleMessage(const std::string& json) override; |
| 19 | 21 |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 | 206 |
| 205 #define NACL_BROWSER_TEST_F(suite, name, body) \ | 207 #define NACL_BROWSER_TEST_F(suite, name, body) \ |
| 206 IN_PROC_BROWSER_TEST_F(suite##Newlib, name) \ | 208 IN_PROC_BROWSER_TEST_F(suite##Newlib, name) \ |
| 207 body \ | 209 body \ |
| 208 IN_PROC_BROWSER_TEST_F(suite##GLibc, MAYBE_GLIBC(name)) \ | 210 IN_PROC_BROWSER_TEST_F(suite##GLibc, MAYBE_GLIBC(name)) \ |
| 209 body \ | 211 body \ |
| 210 IN_PROC_BROWSER_TEST_F(suite##Pnacl, MAYBE_PNACL(name)) \ | 212 IN_PROC_BROWSER_TEST_F(suite##Pnacl, MAYBE_PNACL(name)) \ |
| 211 body | 213 body |
| 212 | 214 |
| 213 #endif // CHROME_TEST_NACL_NACL_BROWSERTEST_UTIL_H_ | 215 #endif // CHROME_TEST_NACL_NACL_BROWSERTEST_UTIL_H_ |
| OLD | NEW |