Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / native_client_sdk / src / tests / nacl_io_test / jspipe_test.cc
index cd0d1d2..b14bf18 100644 (file)
@@ -27,8 +27,11 @@ namespace {
 
 class JSPipeTest : public ::testing::Test {
  public:
+  JSPipeTest() : fs_(&pepper_) {}
+
   void SetUp() {
-    ki_init(&kp_);
+    ASSERT_EQ(0, ki_push_state_for_testing());
+    ASSERT_EQ(0, ki_init(&kp_));
     ASSERT_EQ(0, fs_.Access(Path("/jspipe1"), R_OK | W_OK));
     ASSERT_EQ(EACCES, fs_.Access(Path("/jspipe1"), X_OK));
     ASSERT_EQ(0, fs_.Open(Path("/jspipe1"), O_RDWR, &pipe_dev_));
@@ -39,6 +42,7 @@ class JSPipeTest : public ::testing::Test {
 
  protected:
   KernelProxy kp_;
+  FakePepperInterface pepper_;
   DevFsForTesting fs_;
   ScopedNode pipe_dev_;
 };