| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/test/nacl/nacl_ui_test.h" | |
| 6 | |
| 7 // TODO(jvoung) see what includes we really need. | |
| 8 #include "base/file_util.h" | |
| 9 #include "base/path_service.h" | |
| 10 #include "base/test/test_timeouts.h" | |
| 11 #include "chrome/common/chrome_paths.h" | |
| 12 | |
| 13 namespace { | |
| 14 // NOTE: The base URL of each HTML file is specified in nacl_test. | |
| 15 const FilePath::CharType kPPAPIHwHtmlFileName[] = | |
| 16 FILE_PATH_LITERAL("srpc_hw_ppapi.html"); | |
| 17 const FilePath::CharType kSrpcBasicHtmlFileName[] = | |
| 18 FILE_PATH_LITERAL("srpc_basic.html"); | |
| 19 const FilePath::CharType kSrpcSockAddrHtmlFileName[] = | |
| 20 FILE_PATH_LITERAL("srpc_sockaddr.html"); | |
| 21 const FilePath::CharType kSrpcShmHtmlFileName[] = | |
| 22 FILE_PATH_LITERAL("srpc_shm.html"); | |
| 23 const FilePath::CharType kSrpcPluginHtmlFileName[] = | |
| 24 FILE_PATH_LITERAL("srpc_plugin.html"); | |
| 25 const FilePath::CharType kSrpcNrdXferHtmlFileName[] = | |
| 26 FILE_PATH_LITERAL("srpc_nrd_xfer.html"); | |
| 27 const FilePath::CharType kServerHtmlFileName[] = | |
| 28 FILE_PATH_LITERAL("server_test.html"); | |
| 29 const FilePath::CharType kNpapiHwHtmlFileName[] = | |
| 30 FILE_PATH_LITERAL("npapi_hw.html"); | |
| 31 } // namespace | |
| 32 | |
| 33 NaClUITest::NaClUITest() { | |
| 34 } | |
| 35 | |
| 36 NaClUITest::~NaClUITest() { | |
| 37 } | |
| 38 | |
| 39 /* None of these tests are enabled anymore, and the test framework seems | |
| 40 * not to be a good fit for nacl testing anyway. | |
| 41 * TODO(sehr): remove nacl_ui_test.cc entirely once the buildbots don't use it. | |
| 42 */ | |
| 43 TEST_F(NaClUITest, DISABLED_ServerTest) { | |
| 44 FilePath test_file(kServerHtmlFileName); | |
| 45 RunTest(test_file, TestTimeouts::action_max_timeout_ms()); | |
| 46 } | |
| 47 | |
| 48 // Uses obsolete srpc interface. | |
| 49 TEST_F(NaClUITest, DISABLED_PPAPIHelloWorld) { | |
| 50 FilePath test_file(kPPAPIHwHtmlFileName); | |
| 51 RunTest(test_file, TestTimeouts::action_max_timeout_ms()); | |
| 52 } | |
| 53 | |
| 54 // http://crbug.com/64973 | |
| 55 TEST_F(NaClUITest, DISABLED_SrpcBasicTest) { | |
| 56 FilePath test_file(kSrpcBasicHtmlFileName); | |
| 57 RunTest(test_file, TestTimeouts::action_max_timeout_ms()); | |
| 58 } | |
| 59 | |
| 60 TEST_F(NaClUITest, DISABLED_SrpcSockAddrTest) { | |
| 61 FilePath test_file(kSrpcSockAddrHtmlFileName); | |
| 62 RunTest(test_file, TestTimeouts::action_max_timeout_ms()); | |
| 63 } | |
| 64 | |
| 65 TEST_F(NaClUITest, DISABLED_SrpcShmTest) { | |
| 66 FilePath test_file(kSrpcShmHtmlFileName); | |
| 67 RunTest(test_file, TestTimeouts::action_max_timeout_ms()); | |
| 68 } | |
| 69 | |
| 70 TEST_F(NaClUITest, DISABLED_SrpcPluginTest) { | |
| 71 FilePath test_file(kSrpcPluginHtmlFileName); | |
| 72 RunTest(test_file, TestTimeouts::action_max_timeout_ms()); | |
| 73 } | |
| 74 | |
| 75 TEST_F(NaClUITest, DISABLED_SrpcNrdXferTest) { | |
| 76 FilePath test_file(kSrpcNrdXferHtmlFileName); | |
| 77 RunTest(test_file, TestTimeouts::action_max_timeout_ms()); | |
| 78 } | |
| 79 | |
| 80 TEST_F(NaClUITest, DISABLED_NpapiHwTest) { | |
| 81 FilePath test_file(kNpapiHwHtmlFileName); | |
| 82 RunTest(test_file, TestTimeouts::action_max_timeout_ms()); | |
| 83 } | |
| 84 | |
| 85 // TEST_F(NaClUITest, DISABLED_MultiarchTest) { | |
| 86 // FilePath test_file(kSrpcHwHtmlFileName); | |
| 87 // RunMultiarchTest(test_file, TestTimeouts::action_max_timeout_ms()); | |
| 88 // } | |
| OLD | NEW |