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

Side by Side Diff: components/window_manager/window_manager_apptest.cc

Issue 1139123006: Fork the mojo shell interfaces used by Mandoline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 5 years, 7 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 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/run_loop.h" 6 #include "base/run_loop.h"
7 #include "components/view_manager/public/cpp/view.h" 7 #include "components/view_manager/public/cpp/view.h"
8 #include "components/view_manager/public/cpp/view_manager_client_factory.h" 8 #include "components/view_manager/public/cpp/view_manager_client_factory.h"
9 #include "components/view_manager/public/cpp/view_manager_delegate.h" 9 #include "components/view_manager/public/cpp/view_manager_delegate.h"
10 #include "components/window_manager/public/interfaces/window_manager.mojom.h" 10 #include "components/window_manager/public/interfaces/window_manager.mojom.h"
11 #include "mojo/application/application_test_base_chromium.h" 11 #include "mojo/application/application_test_base_chromium.h"
12 #include "third_party/mojo/src/mojo/public/cpp/application/application_delegate. h" 12 #include "mojo/application/public/cpp/application_delegate.h"
13 #include "third_party/mojo/src/mojo/public/cpp/application/application_impl.h" 13 #include "mojo/application/public/cpp/application_impl.h"
14 #include "third_party/mojo/src/mojo/public/cpp/application/service_provider_impl .h" 14 #include "mojo/application/public/cpp/service_provider_impl.h"
15 #include "third_party/mojo/src/mojo/public/cpp/system/macros.h" 15 #include "third_party/mojo/src/mojo/public/cpp/system/macros.h"
16 16
17 namespace mojo { 17 namespace mojo {
18 namespace { 18 namespace {
19 19
20 // TestApplication's view is embedded by the window manager. 20 // TestApplication's view is embedded by the window manager.
21 class TestApplication : public ApplicationDelegate, public ViewManagerDelegate { 21 class TestApplication : public ApplicationDelegate, public ViewManagerDelegate {
22 public: 22 public:
23 TestApplication() : root_(nullptr) {} 23 TestApplication() : root_(nullptr) {}
24 ~TestApplication() override {} 24 ~TestApplication() override {}
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 }; 89 };
90 90
91 TEST_F(WindowManagerApplicationTest, Embed) { 91 TEST_F(WindowManagerApplicationTest, Embed) {
92 EXPECT_EQ(nullptr, test_application_.root()); 92 EXPECT_EQ(nullptr, test_application_.root());
93 EmbedApplicationWithURL(application_impl()->url()); 93 EmbedApplicationWithURL(application_impl()->url());
94 EXPECT_NE(nullptr, test_application_.root()); 94 EXPECT_NE(nullptr, test_application_.root());
95 } 95 }
96 96
97 } // namespace 97 } // namespace
98 } // namespace mojo 98 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698