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

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

Issue 1435063002: Eliminate third_party/mojo/src from all targets' include paths (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 1 month 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/edk/system/simple_dispatcher.h ('k') | mojo/edk/system/test_utils.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::EpsilonDeadline()| may be increased to 6 // heavily-loaded system). Sorry. |test::EpsilonDeadline()| 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/edk/system/simple_dispatcher.h"
11 11
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_vector.h" 14 #include "base/memory/scoped_vector.h"
15 #include "base/synchronization/lock.h" 15 #include "base/synchronization/lock.h"
16 #include "mojo/edk/system/test_utils.h" 16 #include "mojo/edk/system/test_utils.h"
17 #include "mojo/edk/system/waiter.h" 17 #include "mojo/edk/system/waiter.h"
18 #include "mojo/edk/system/waiter_test_utils.h" 18 #include "mojo/edk/system/waiter_test_utils.h"
19 #include "mojo/public/cpp/system/macros.h"
20 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 #include "third_party/mojo/src/mojo/public/cpp/system/macros.h"
21 21
22 namespace mojo { 22 namespace mojo {
23 namespace edk { 23 namespace edk {
24 namespace { 24 namespace {
25 25
26 class MockSimpleDispatcher final : public SimpleDispatcher { 26 class MockSimpleDispatcher final : public SimpleDispatcher {
27 public: 27 public:
28 MockSimpleDispatcher() 28 MockSimpleDispatcher()
29 : state_(MOJO_HANDLE_SIGNAL_NONE, 29 : state_(MOJO_HANDLE_SIGNAL_NONE,
30 MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_WRITABLE) {} 30 MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_WRITABLE) {}
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 // Since we closed before joining, we can't say much about what each thread 595 // Since we closed before joining, we can't say much about what each thread
596 // saw as the state. 596 // saw as the state.
597 } 597 }
598 } 598 }
599 599
600 // TODO(vtl): Stress test? 600 // TODO(vtl): Stress test?
601 601
602 } // namespace 602 } // namespace
603 } // namespace edk 603 } // namespace edk
604 } // namespace mojo 604 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/edk/system/simple_dispatcher.h ('k') | mojo/edk/system/test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698