test_empty.cc 728 B

1234567891011121314151617181920212223242526
  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
  3. // found in the LICENSE file.
  4. #include "ppapi/tests/test_empty.h"
  5. #include "ppapi/tests/testing_instance.h"
  6. REGISTER_TEST_CASE(Empty);
  7. // This test checks only that the NaCl module loads successfully.
  8. // This is needed when the NaCl module is launched under the debugger and
  9. // so we want to check only the launching sequence.
  10. TestEmpty::TestEmpty(TestingInstance* instance)
  11. : TestCase(instance) {
  12. }
  13. bool TestEmpty::Init() {
  14. return true;
  15. }
  16. void TestEmpty::RunTests(const std::string& filter) {
  17. RUN_TEST(NaClLoad, filter);
  18. }
  19. std::string TestEmpty::TestNaClLoad() {
  20. PASS();
  21. }