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

Side by Side Diff: mojo/public/cpp/utility/tests/run_loop_unittest.cc

Issue 1410053006: Move third_party/mojo/src/mojo/public to mojo/public (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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "third_party/mojo/src/mojo/public/cpp/utility/run_loop.h" 5 #include "mojo/public/cpp/utility/run_loop.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "mojo/public/cpp/system/core.h"
10 #include "mojo/public/cpp/test_support/test_utils.h"
11 #include "mojo/public/cpp/utility/run_loop_handler.h"
9 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
10 #include "third_party/mojo/src/mojo/public/cpp/system/core.h"
11 #include "third_party/mojo/src/mojo/public/cpp/test_support/test_utils.h"
12 #include "third_party/mojo/src/mojo/public/cpp/utility/run_loop_handler.h"
13 13
14 namespace mojo { 14 namespace mojo {
15 namespace { 15 namespace {
16 16
17 class TestRunLoopHandler : public RunLoopHandler { 17 class TestRunLoopHandler : public RunLoopHandler {
18 public: 18 public:
19 TestRunLoopHandler() 19 TestRunLoopHandler()
20 : ready_count_(0), 20 : ready_count_(0),
21 error_count_(0), 21 error_count_(0),
22 last_error_result_(MOJO_RESULT_OK) { 22 last_error_result_(MOJO_RESULT_OK) {
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 run_loop.AddHandler(&handler, 416 run_loop.AddHandler(&handler,
417 test_pipe.handle0.get(), 417 test_pipe.handle0.get(),
418 MOJO_HANDLE_SIGNAL_READABLE, 418 MOJO_HANDLE_SIGNAL_READABLE,
419 MOJO_DEADLINE_INDEFINITE); 419 MOJO_DEADLINE_INDEFINITE);
420 run_loop.PostDelayedTask(Closure(QuittingTask(&run_loop)), 0); 420 run_loop.PostDelayedTask(Closure(QuittingTask(&run_loop)), 0);
421 run_loop.Run(); 421 run_loop.Run();
422 } 422 }
423 423
424 } // namespace 424 } // namespace
425 } // namespace mojo 425 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/public/cpp/utility/tests/mutex_unittest.cc ('k') | mojo/public/cpp/utility/tests/thread_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698