OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "remoting/protocol/pairing_registry.h" | 5 #include "remoting/protocol/pairing_registry.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/macros.h" |
13 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
14 #include "base/message_loop/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
15 #include "base/run_loop.h" | 16 #include "base/run_loop.h" |
16 #include "base/thread_task_runner_handle.h" | 17 #include "base/thread_task_runner_handle.h" |
17 #include "base/values.h" | 18 #include "base/values.h" |
18 #include "remoting/protocol/protocol_mock_objects.h" | 19 #include "remoting/protocol/protocol_mock_objects.h" |
19 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
21 | 22 |
22 using testing::Sequence; | 23 using testing::Sequence; |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 registry->GetPairing( | 249 registry->GetPairing( |
249 pairing_3.client_id(), | 250 pairing_3.client_id(), |
250 base::Bind(&MockPairingRegistryCallbacks::GetPairingCallback, | 251 base::Bind(&MockPairingRegistryCallbacks::GetPairingCallback, |
251 base::Unretained(&callbacks))); | 252 base::Unretained(&callbacks))); |
252 | 253 |
253 run_loop_.Run(); | 254 run_loop_.Run(); |
254 } | 255 } |
255 | 256 |
256 } // namespace protocol | 257 } // namespace protocol |
257 } // namespace remoting | 258 } // namespace remoting |
OLD | NEW |