summaryrefslogtreecommitdiffstats
path: root/ppapi/tests
diff options
context:
space:
mode:
authorhalyavin@google.com <halyavin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-19 13:08:59 +0000
committerhalyavin@google.com <halyavin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-19 13:08:59 +0000
commit592612493c236d4c97bc5de7062b20840fd2b76d (patch)
treee897bad4e5280faa002fa2053fa643420b32e550 /ppapi/tests
parente28a937b1cb87e62afefb5918512ce8b9dfc49d5 (diff)
downloadchromium_src-592612493c236d4c97bc5de7062b20840fd2b76d.zip
chromium_src-592612493c236d4c97bc5de7062b20840fd2b76d.tar.gz
chromium_src-592612493c236d4c97bc5de7062b20840fd2b76d.tar.bz2
Test for --nacl-gdb functionality.
I expanded access rights for NaCl loader (launched under nacl-gdb) process handle from QueryLimitedInformation to QueryInformation because Windows XP doesn't support QueryLimitedInformation. However, this test is switched off on Windows 32-bit due to problems with allocating 1Gb of address space. Future nacl-gdb must have special launching code to solve this problem. BUG= 117010 TEST= browser_tests.exe --gtest_filter=NaClGdbTest.* (on Windows) Review URL: http://codereview.chromium.org/9662055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127453 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/tests')
-rw-r--r--ppapi/tests/test_empty.cc26
-rw-r--r--ppapi/tests/test_empty.h24
2 files changed, 50 insertions, 0 deletions
diff --git a/ppapi/tests/test_empty.cc b/ppapi/tests/test_empty.cc
new file mode 100644
index 0000000..9a9fe74
--- /dev/null
+++ b/ppapi/tests/test_empty.cc
@@ -0,0 +1,26 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ppapi/tests/test_empty.h"
+#include "ppapi/tests/testing_instance.h"
+
+REGISTER_TEST_CASE(Empty);
+// This test checks only that the NaCl module loads successfully.
+// This is needed when the NaCl module is launched under the debugger and
+// so we want to check only the launching sequence.
+TestEmpty::TestEmpty(TestingInstance* instance)
+ : TestCase(instance) {
+}
+
+bool TestEmpty::Init() {
+ return true;
+}
+
+void TestEmpty::RunTests(const std::string& filter) {
+ RUN_TEST(NaClLoad, filter);
+}
+
+std::string TestEmpty::TestNaClLoad() {
+ PASS();
+}
diff --git a/ppapi/tests/test_empty.h b/ppapi/tests/test_empty.h
new file mode 100644
index 0000000..3c2ca6e
--- /dev/null
+++ b/ppapi/tests/test_empty.h
@@ -0,0 +1,24 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef PPAPI_TESTS_TEST_EMPTY_H_
+#define PPAPI_TESTS_TEST_EMPTY_H_
+
+#include <string>
+
+#include "ppapi/tests/test_case.h"
+
+class TestEmpty : public TestCase {
+ public:
+ explicit TestEmpty(TestingInstance* instance);
+
+ // TestCase implementation.
+ virtual bool Init();
+ virtual void RunTests(const std::string& filter);
+
+ private:
+ std::string TestNaClLoad();
+};
+
+#endif // PPAPI_TESTS_TEST_EMPTY_H_