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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 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.
4
5 #ifndef LIBRARIES_NACL_IO_TEST_MOUNT_NODE_MOCK_H_
6 #define LIBRARIES_NACL_IO_TEST_MOUNT_NODE_MOCK_H_
7
8 #include "gmock/gmock.h"
9
10 #include "nacl_io/mount.h"
11 #include "nacl_io/mount_dev.h"
12
13 #define NULL_NODE ((MountNode*) NULL)
14
15 class MountDevMock : public nacl_io::MountDev {
16 public:
17 MountDevMock() {
18 nacl_io::StringMap_t map;
19 Init(1, map, NULL);
20 }
21 int num_nodes() { return (int) inode_pool_.size(); }
22 };
23
24 #endif
binji 2013/08/20 18:26:49 nit: include guard comment
Sam Clegg 2013/08/20 19:09:36 Done.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698