Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: mojo/services/gfx/images/cpp/image_pipe_apptest.cc

Issue 2010283006: Almost done: ApplicationDelegate -> ApplicationImplBase conversion. (Closed) Base URL: https://github.com/domokit/mojo.git@work798-x-work797-x-work796_no_run_main_app
Patch Set: rebased Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « mojo/services/gfx/composition/cpp/frame_tracker_apptest.cc ('k') | mojo/ui/associates/view_inspector_client_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698