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

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

Issue 1335783005: [NaCl SDK] nacl_io: Add support for basic socketpairs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Class renamed/cl-format applied. Created 5 years, 3 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/mock_node.cc
diff --git a/native_client_sdk/src/tests/nacl_io_test/mock_node.cc b/native_client_sdk/src/tests/nacl_io_test/mock_node.cc
index cc658c7200e6c6a48a9f17882c2654cbf5b584f7..0d4664a76af85460575291f9ac511db6baf4e576 100644
--- a/native_client_sdk/src/tests/nacl_io_test/mock_node.cc
+++ b/native_client_sdk/src/tests/nacl_io_test/mock_node.cc
@@ -4,6 +4,10 @@
#include "mock_node.h"
-MockNode::MockNode(nacl_io::Filesystem* mount) : Node(mount) {}
+using ::testing::Return;
+
+MockNode::MockNode(nacl_io::Filesystem* mount) : Node(mount) {
+ ON_CALL(*this, GetType()).WillByDefault(Return(S_IFREG));
Sam Clegg 2015/09/22 17:53:44 Why?
avallee 2015/09/22 20:25:06 Removed, not necessary.
+}
MockNode::~MockNode() {}

Powered by Google App Engine
This is Rietveld 408576698