OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "base/waitable_event.h" | 5 #include "base/synchronization/waitable_event.h" |
6 #include "remoting/jingle_glue/jingle_client.h" | 6 #include "remoting/jingle_glue/jingle_client.h" |
7 #include "remoting/jingle_glue/jingle_thread.h" | 7 #include "remoting/jingle_glue/jingle_thread.h" |
8 #include "testing/gmock/include/gmock/gmock.h" | 8 #include "testing/gmock/include/gmock/gmock.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 | 10 |
11 using testing::_; | 11 using testing::_; |
12 | 12 |
13 namespace remoting { | 13 namespace remoting { |
14 | 14 |
15 class MockJingleClientCallback : public JingleClient::Callback { | 15 class MockJingleClientCallback : public JingleClient::Callback { |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 client_->Close(NewRunnableFunction(&JingleClientTest::OnClosed, | 94 client_->Close(NewRunnableFunction(&JingleClientTest::OnClosed, |
95 &closed1)); | 95 &closed1)); |
96 bool closed2 = false; | 96 bool closed2 = false; |
97 client_->Close(NewRunnableFunction(&JingleClientTest::OnClosed, | 97 client_->Close(NewRunnableFunction(&JingleClientTest::OnClosed, |
98 &closed2)); | 98 &closed2)); |
99 thread_.Stop(); | 99 thread_.Stop(); |
100 EXPECT_TRUE(closed1 && closed2); | 100 EXPECT_TRUE(closed1 && closed2); |
101 } | 101 } |
102 | 102 |
103 } // namespace remoting | 103 } // namespace remoting |
OLD | NEW |