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 <list> | 5 #include <list> |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
10 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
11 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
12 #include "remoting/host/desktop_resizer.h" | 13 #include "remoting/host/desktop_resizer.h" |
13 #include "remoting/host/resizing_host_observer.h" | 14 #include "remoting/host/resizing_host_observer.h" |
14 #include "remoting/host/screen_resolution.h" | 15 #include "remoting/host/screen_resolution.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
16 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" | 17 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" |
17 | 18 |
18 namespace remoting { | 19 namespace remoting { |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 FROM_HERE, | 301 FROM_HERE, |
301 run_loop.QuitClosure(), | 302 run_loop.QuitClosure(), |
302 base::TimeDelta::FromMilliseconds(2)); | 303 base::TimeDelta::FromMilliseconds(2)); |
303 run_loop.Run(); | 304 run_loop.Run(); |
304 | 305 |
305 // If the QuitClosure fired before the final resize, it's a test failure. | 306 // If the QuitClosure fired before the final resize, it's a test failure. |
306 EXPECT_EQ(desktop_resizer_->GetCurrentResolution(), MakeResolution(300, 300)); | 307 EXPECT_EQ(desktop_resizer_->GetCurrentResolution(), MakeResolution(300, 300)); |
307 } | 308 } |
308 | 309 |
309 } // namespace remoting | 310 } // namespace remoting |
OLD | NEW |