OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "mojo/public/cpp/application/application_impl.h" | |
6 #include "mojo/public/cpp/application/application_test_base.h" | 5 #include "mojo/public/cpp/application/application_test_base.h" |
7 #include "mojo/public/cpp/environment/logging.h" | 6 #include "mojo/public/cpp/environment/logging.h" |
8 #include "mojo/public/cpp/system/macros.h" | 7 #include "mojo/public/cpp/system/macros.h" |
9 #include "mojo/public/cpp/utility/run_loop.h" | 8 #include "mojo/public/cpp/utility/run_loop.h" |
10 #include "mojo/services/gfx/images/cpp/image_pipe_consumer_endpoint.h" | 9 #include "mojo/services/gfx/images/cpp/image_pipe_consumer_endpoint.h" |
11 #include "mojo/services/gfx/images/cpp/image_pipe_producer_endpoint.h" | 10 #include "mojo/services/gfx/images/cpp/image_pipe_producer_endpoint.h" |
12 | 11 |
13 namespace mojo { | 12 namespace mojo { |
14 namespace { | 13 namespace { |
15 | 14 |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 MOJO_CHECK(image_pipe.ProducerEndpoint()->AcquireImage(&acquired_id)); | 342 MOJO_CHECK(image_pipe.ProducerEndpoint()->AcquireImage(&acquired_id)); |
344 MOJO_CHECK(acquired_id == id); | 343 MOJO_CHECK(acquired_id == id); |
345 image_pipe.ProducerEndpoint()->PresentImage( | 344 image_pipe.ProducerEndpoint()->PresentImage( |
346 id, [](mojo::gfx::PresentationStatus) {}); | 345 id, [](mojo::gfx::PresentationStatus) {}); |
347 | 346 |
348 mojo::RunLoop::current()->Run(); | 347 mojo::RunLoop::current()->Run(); |
349 EXPECT_TRUE(image_pipe.HasExperiencedError()); | 348 EXPECT_TRUE(image_pipe.HasExperiencedError()); |
350 } | 349 } |
351 | 350 |
352 } // namespace | 351 } // namespace |
353 } // namespace mojo | 352 } // namespace mojo |
OLD | NEW |