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 <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
10 #include "cc/base/swap_promise.h" | 10 #include "cc/output/swap_promise.h" |
11 #include "content/renderer/gpu/frame_swap_message_queue.h" | 11 #include "content/renderer/gpu/frame_swap_message_queue.h" |
12 #include "content/renderer/gpu/render_widget_compositor.h" | 12 #include "content/renderer/gpu/render_widget_compositor.h" |
13 #include "content/renderer/render_widget.h" | 13 #include "content/renderer/render_widget.h" |
14 #include "content/test/mock_render_process.h" | 14 #include "content/test/mock_render_process.h" |
15 #include "ipc/ipc_message.h" | 15 #include "ipc/ipc_message.h" |
16 #include "ipc/ipc_sync_message_filter.h" | 16 #include "ipc/ipc_sync_message_filter.h" |
17 #include "ipc/ipc_test_sink.h" | 17 #include "ipc/ipc_test_sink.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 | 19 |
20 namespace content { | 20 namespace content { |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 | 322 |
323 EXPECT_TRUE(NextSwapMessages().empty()); | 323 EXPECT_TRUE(NextSwapMessages().empty()); |
324 EXPECT_FALSE(frame_swap_message_queue_->Empty()); | 324 EXPECT_FALSE(frame_swap_message_queue_->Empty()); |
325 } | 325 } |
326 | 326 |
327 TEST_F(QueueMessageSwapPromiseTest, VisalStateSwapPromiseDidNotSwapSwapFails) { | 327 TEST_F(QueueMessageSwapPromiseTest, VisalStateSwapPromiseDidNotSwapSwapFails) { |
328 VisualStateSwapPromiseDidNotSwap(cc::SwapPromise::SWAP_FAILS); | 328 VisualStateSwapPromiseDidNotSwap(cc::SwapPromise::SWAP_FAILS); |
329 } | 329 } |
330 | 330 |
331 } // namespace content | 331 } // namespace content |
OLD | NEW |