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

Unified Diff: native_client_sdk/src/libraries/nacl_io_test/mount_dev_mock.h

Issue 23075013: [NaCl SDK] Enable select/poll on TTY nodes. (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/libraries/nacl_io_test/mount_dev_mock.h
diff --git a/native_client_sdk/src/libraries/nacl_io_test/mount_dev_mock.h b/native_client_sdk/src/libraries/nacl_io_test/mount_dev_mock.h
new file mode 100644
index 0000000000000000000000000000000000000000..10ee8302447fcc89dd7911e2773aa808fc5eb4d1
--- /dev/null
+++ b/native_client_sdk/src/libraries/nacl_io_test/mount_dev_mock.h
@@ -0,0 +1,24 @@
+// Copyright (c) 2013 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 LIBRARIES_NACL_IO_TEST_MOUNT_NODE_MOCK_H_
+#define LIBRARIES_NACL_IO_TEST_MOUNT_NODE_MOCK_H_
+
+#include "gmock/gmock.h"
+
+#include "nacl_io/mount.h"
+#include "nacl_io/mount_dev.h"
+
+#define NULL_NODE ((MountNode*) NULL)
+
+class MountDevMock : public nacl_io::MountDev {
+ public:
+ MountDevMock() {
+ nacl_io::StringMap_t map;
+ Init(1, map, NULL);
+ }
+ int num_nodes() { return (int) inode_pool_.size(); }
+};
+
+#endif // LIBRARIES_NACL_IO_TEST_MOUNT_NODE_MOCK_H_

Powered by Google App Engine
This is Rietveld 408576698