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

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

Issue 1681223004: [NaCl SDK] kernel_wrap_tests: Setup munmap mocks before calling ki_init (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc
diff --git a/native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc b/native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc
index 508728172d2aa2f7e5f2c9c3c08d0e9a9f13f05a..1455da7a4fe22b52488f0248f8c8fee50b70636d 100644
--- a/native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc
+++ b/native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc
@@ -150,9 +150,6 @@ class KernelWrapTest : public ::testing::Test {
.WillOnce(Return(1))
.WillOnce(Return(2));
- ASSERT_EQ(0, ki_push_state_for_testing());
- ASSERT_EQ(0, ki_init(&mock));
-
// We allow write to be called any number of times, and it forwards to
// _real_write. This prevents an infinite loop writing output if there is a
// failure.
@@ -167,6 +164,9 @@ class KernelWrapTest : public ::testing::Test {
ON_CALL(mock, munmap(_, _))
.WillByDefault(Return(0));
EXPECT_CALL(mock, munmap(_, _)).Times(AnyNumber());
+
+ ASSERT_EQ(0, ki_push_state_for_testing());
+ ASSERT_EQ(0, ki_init(&mock));
}
void TearDown() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698