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/message_loop.h" | 5 #include "base/message_loop.h" |
6 #include "base/task.h" | 6 #include "base/task.h" |
7 #include "remoting/base/mock_objects.h" | 7 #include "remoting/base/mock_objects.h" |
8 #include "remoting/host/mock_objects.h" | 8 #include "remoting/host/mock_objects.h" |
9 #include "remoting/host/session_manager.h" | 9 #include "remoting/host/session_manager.h" |
10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 } | 64 } |
65 | 65 |
66 ACTION_P(FinishEncode, msg) { | 66 ACTION_P(FinishEncode, msg) { |
67 Encoder::EncodingState state = (Encoder::EncodingStarting | | 67 Encoder::EncodingState state = (Encoder::EncodingStarting | |
68 Encoder::EncodingInProgress | | 68 Encoder::EncodingInProgress | |
69 Encoder::EncodingEnded); | 69 Encoder::EncodingEnded); |
70 arg2->Run(msg, state); | 70 arg2->Run(msg, state); |
71 delete arg2; | 71 delete arg2; |
72 } | 72 } |
73 | 73 |
74 TEST_F(SessionManagerTest, OneRecordCycle) { | 74 // BUG 57351 |
| 75 TEST_F(SessionManagerTest, DISABLED_OneRecordCycle) { |
75 Init(); | 76 Init(); |
76 | 77 |
77 InvalidRects update_rects; | 78 InvalidRects update_rects; |
78 update_rects.insert(gfx::Rect(0, 0, 10, 10)); | 79 update_rects.insert(gfx::Rect(0, 0, 10, 10)); |
79 DataPlanes planes; | 80 DataPlanes planes; |
80 for (int i = 0; i < DataPlanes::kPlaneCount; ++i) { | 81 for (int i = 0; i < DataPlanes::kPlaneCount; ++i) { |
81 planes.data[i] = reinterpret_cast<uint8*>(i); | 82 planes.data[i] = reinterpret_cast<uint8*>(i); |
82 planes.strides[i] = kWidth * 4; | 83 planes.strides[i] = kWidth * 4; |
83 } | 84 } |
84 scoped_refptr<CaptureData> data(new CaptureData(planes, kWidth, | 85 scoped_refptr<CaptureData> data(new CaptureData(planes, kWidth, |
(...skipping 29 matching lines...) Expand all Loading... |
114 | 115 |
115 // Make sure all tasks are completed. | 116 // Make sure all tasks are completed. |
116 message_loop_.RunAllPending(); | 117 message_loop_.RunAllPending(); |
117 } | 118 } |
118 | 119 |
119 // TODO(hclam): Add test for double buffering. | 120 // TODO(hclam): Add test for double buffering. |
120 // TODO(hclam): Add test for multiple captures. | 121 // TODO(hclam): Add test for multiple captures. |
121 // TODO(hclam): Add test for interruption. | 122 // TODO(hclam): Add test for interruption. |
122 | 123 |
123 } // namespace remoting | 124 } // namespace remoting |
OLD | NEW |