1 // Copyright 2013 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.
5 #ifndef TESTS_NACL_IO_TEST_DEV_FS_FOR_TESTING_H_
6 #define TESTS_NACL_IO_TEST_DEV_FS_FOR_TESTING_H_
8 #include "fake_ppapi/fake_pepper_interface.h"
9 #include "gmock/gmock.h"
10 #include "nacl_io/devfs/dev_fs.h"
11 #include "nacl_io/filesystem.h"
13 #define NULL_NODE ((Node*)NULL)
15 class DevFsForTesting : public nacl_io::DevFs {
17 explicit DevFsForTesting(nacl_io::PepperInterface* ppapi) {
18 nacl_io::FsInitArgs args(1);
23 int num_nodes() { return (int)inode_pool_.size(); }
26 #endif // TESTS_NACL_IO_TEST_DEV_FS_FOR_TESTING_H_