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

Side by Side Diff: mojo/system/simple_dispatcher_unittest.cc

Issue 623883002: Revert "Move mojo edk into mojo/edk" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « mojo/system/simple_dispatcher.cc ('k') | mojo/system/system_impl_export.h » ('j') | 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 // NOTE(vtl): Some of these tests are inherently flaky (e.g., if run on a 5 // NOTE(vtl): Some of these tests are inherently flaky (e.g., if run on a
6 // heavily-loaded system). Sorry. |test::EpsilonTimeout()| may be increased to 6 // heavily-loaded system). Sorry. |test::EpsilonTimeout()| may be increased to
7 // increase tolerance and reduce observed flakiness (though doing so reduces the 7 // increase tolerance and reduce observed flakiness (though doing so reduces the
8 // meaningfulness of the test). 8 // meaningfulness of the test).
9 9
10 #include "mojo/edk/system/simple_dispatcher.h" 10 #include "mojo/system/simple_dispatcher.h"
11 11
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/memory/scoped_vector.h" 15 #include "base/memory/scoped_vector.h"
16 #include "base/synchronization/lock.h" 16 #include "base/synchronization/lock.h"
17 #include "base/threading/platform_thread.h" // For |Sleep()|. 17 #include "base/threading/platform_thread.h" // For |Sleep()|.
18 #include "base/time/time.h" 18 #include "base/time/time.h"
19 #include "mojo/edk/system/test_utils.h" 19 #include "mojo/system/test_utils.h"
20 #include "mojo/edk/system/waiter.h" 20 #include "mojo/system/waiter.h"
21 #include "mojo/edk/system/waiter_test_utils.h" 21 #include "mojo/system/waiter_test_utils.h"
22 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
23 23
24 namespace mojo { 24 namespace mojo {
25 namespace system { 25 namespace system {
26 namespace { 26 namespace {
27 27
28 class MockSimpleDispatcher : public SimpleDispatcher { 28 class MockSimpleDispatcher : public SimpleDispatcher {
29 public: 29 public:
30 MockSimpleDispatcher() 30 MockSimpleDispatcher()
31 : state_(MOJO_HANDLE_SIGNAL_NONE, 31 : state_(MOJO_HANDLE_SIGNAL_NONE,
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 // Since we closed before joining, we can't say much about what each thread 660 // Since we closed before joining, we can't say much about what each thread
661 // saw as the state. 661 // saw as the state.
662 } 662 }
663 } 663 }
664 664
665 // TODO(vtl): Stress test? 665 // TODO(vtl): Stress test?
666 666
667 } // namespace 667 } // namespace
668 } // namespace system 668 } // namespace system
669 } // namespace mojo 669 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/system/simple_dispatcher.cc ('k') | mojo/system/system_impl_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698