| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "content/renderer/gpu/queue_message_swap_promise.h" | 5 #include "content/renderer/gpu/queue_message_swap_promise.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <vector> | 9 #include <vector> |
| 8 | 10 |
| 11 #include "base/macros.h" |
| 9 #include "base/memory/scoped_vector.h" | 12 #include "base/memory/scoped_vector.h" |
| 10 #include "cc/output/swap_promise.h" | 13 #include "cc/output/swap_promise.h" |
| 11 #include "content/renderer/gpu/frame_swap_message_queue.h" | 14 #include "content/renderer/gpu/frame_swap_message_queue.h" |
| 12 #include "content/renderer/gpu/render_widget_compositor.h" | 15 #include "content/renderer/gpu/render_widget_compositor.h" |
| 13 #include "content/renderer/render_widget.h" | 16 #include "content/renderer/render_widget.h" |
| 14 #include "content/test/mock_render_process.h" | 17 #include "content/test/mock_render_process.h" |
| 15 #include "ipc/ipc_message.h" | 18 #include "ipc/ipc_message.h" |
| 16 #include "ipc/ipc_sync_message_filter.h" | 19 #include "ipc/ipc_sync_message_filter.h" |
| 17 #include "ipc/ipc_test_sink.h" | 20 #include "ipc/ipc_test_sink.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 TEST_F(QueueMessageSwapPromiseTest, VisualStateSwapPromiseDidNotSwapSwapFails) { | 315 TEST_F(QueueMessageSwapPromiseTest, VisualStateSwapPromiseDidNotSwapSwapFails) { |
| 313 VisualStateSwapPromiseDidNotSwap(cc::SwapPromise::SWAP_FAILS); | 316 VisualStateSwapPromiseDidNotSwap(cc::SwapPromise::SWAP_FAILS); |
| 314 } | 317 } |
| 315 | 318 |
| 316 TEST_F(QueueMessageSwapPromiseTest, | 319 TEST_F(QueueMessageSwapPromiseTest, |
| 317 VisualStateSwapPromiseDidNotSwapActivationFails) { | 320 VisualStateSwapPromiseDidNotSwapActivationFails) { |
| 318 VisualStateSwapPromiseDidNotSwap(cc::SwapPromise::ACTIVATION_FAILS); | 321 VisualStateSwapPromiseDidNotSwap(cc::SwapPromise::ACTIVATION_FAILS); |
| 319 } | 322 } |
| 320 | 323 |
| 321 } // namespace content | 324 } // namespace content |
| OLD | NEW |