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 // Unit test for VideoCaptureController. | 5 // Unit test for VideoCaptureController. |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 #include <string.h> |
8 | 9 |
9 #include <string> | 10 #include <string> |
10 | 11 |
11 #include "base/bind.h" | 12 #include "base/bind.h" |
12 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" |
13 #include "base/location.h" | 14 #include "base/location.h" |
14 #include "base/macros.h" | 15 #include "base/macros.h" |
15 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
16 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
17 #include "base/run_loop.h" | 18 #include "base/run_loop.h" |
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 | 551 |
551 // Second client connects after the error state. It also should get told of | 552 // Second client connects after the error state. It also should get told of |
552 // the error. | 553 // the error. |
553 EXPECT_CALL(*client_b_, DoError(route_id)).Times(1); | 554 EXPECT_CALL(*client_b_, DoError(route_id)).Times(1); |
554 controller_->AddClient( | 555 controller_->AddClient( |
555 route_id, client_b_.get(), base::kNullProcessHandle, 200, session_200); | 556 route_id, client_b_.get(), base::kNullProcessHandle, 200, session_200); |
556 Mock::VerifyAndClearExpectations(client_b_.get()); | 557 Mock::VerifyAndClearExpectations(client_b_.get()); |
557 } | 558 } |
558 | 559 |
559 } // namespace content | 560 } // namespace content |
OLD | NEW |