Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1758)

Unified Diff: native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc

Issue 23005005: [NaCl SDK] nacl_io: Add initial implementations of kill and signal (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc
diff --git a/native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc b/native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc
index bcbf147360bf18f2ca3c1e911a13667ed8d9b21c..65202b66f9eab9c0d5b84dfe91e308782ab28f9f 100644
--- a/native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc
+++ b/native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc
@@ -213,6 +213,13 @@ TEST_F(KernelWrapTest, isatty) {
isatty(678);
}
+/*
binji 2013/08/22 18:09:36 remove?
Sam Clegg 2013/08/22 19:52:25 Done.
+TEST_F(KernelWrapTest, kill) {
+ EXPECT_CALL(mock, kill(22, 33)).Times(1);
+ kill(22, 33);
+}
+*/
+
TEST_F(KernelWrapTest, lchown) {
uid_t uid = kDummyUid;
gid_t gid = kDummyGid;
@@ -262,6 +269,19 @@ TEST_F(KernelWrapTest, rmdir) {
rmdir("rmdir");
}
+static void handler(int) {
+}
+
+TEST_F(KernelWrapTest, sigset) {
+ EXPECT_CALL(mock, sigset(22, handler)).Times(1);
+ sigset(22, handler);
+}
+
+TEST_F(KernelWrapTest, signal) {
+ EXPECT_CALL(mock, sigset(22, handler)).Times(1);
+ signal(22, handler);
+}
+
TEST_F(KernelWrapTest, stat) {
struct stat in_statbuf;
MakeDummyStatbuf(&in_statbuf);

Powered by Google App Engine
This is Rietveld 408576698