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

Side by Side Diff: mojo/edk/system/core_unittest.cc

Issue 804703002: Fix Android build. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "mojo/edk/system/core.h" 5 #include "mojo/edk/system/core.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <limits> 9 #include <limits>
10 10
(...skipping 1286 matching lines...) Expand 10 before | Expand all | Expand 10 after
1297 base::Unretained(&waiter)))); 1297 base::Unretained(&waiter))));
1298 EXPECT_EQ(0u, info.GetAddedAwakableSize()); 1298 EXPECT_EQ(0u, info.GetAddedAwakableSize());
1299 1299
1300 info.AllowAddAwakable(true); 1300 info.AllowAddAwakable(true);
1301 EXPECT_EQ(MOJO_RESULT_OK, 1301 EXPECT_EQ(MOJO_RESULT_OK,
1302 core()->AsyncWait(h, MOJO_HANDLE_SIGNAL_READABLE, 1302 core()->AsyncWait(h, MOJO_HANDLE_SIGNAL_READABLE,
1303 base::Bind(&TestAsyncWaiter::Awake, 1303 base::Bind(&TestAsyncWaiter::Awake,
1304 base::Unretained(&waiter)))); 1304 base::Unretained(&waiter))));
1305 EXPECT_EQ(1u, info.GetAddedAwakableSize()); 1305 EXPECT_EQ(1u, info.GetAddedAwakableSize());
1306 1306
1307 EXPECT_EQ(false, info.GetAddedAwakableAt(0)->Awake(MOJO_RESULT_BUSY, 0)); 1307 EXPECT_FALSE(info.GetAddedAwakableAt(0)->Awake(MOJO_RESULT_BUSY, 0));
1308 EXPECT_EQ(MOJO_RESULT_BUSY, waiter.result); 1308 EXPECT_EQ(MOJO_RESULT_BUSY, waiter.result);
1309 1309
1310 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(h)); 1310 EXPECT_EQ(MOJO_RESULT_OK, core()->Close(h));
1311 } 1311 }
1312 1312
1313 // TODO(vtl): Test |DuplicateBufferHandle()| and |MapBuffer()|. 1313 // TODO(vtl): Test |DuplicateBufferHandle()| and |MapBuffer()|.
1314 1314
1315 } // namespace 1315 } // namespace
1316 } // namespace system 1316 } // namespace system
1317 } // namespace mojo 1317 } // namespace mojo
OLDNEW
« 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