Chromium Code Reviews| Index: chromecast/graphics/cast_window_manager_aura_test.cc |
| diff --git a/chromecast/graphics/cast_window_manager_aura_test.cc b/chromecast/graphics/cast_window_manager_aura_test.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a768a41e3076e890b9f43502198720180df025cd |
| --- /dev/null |
| +++ b/chromecast/graphics/cast_window_manager_aura_test.cc |
| @@ -0,0 +1,33 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "chromecast/graphics/cast_window_manager.h" |
| + |
| +#include <memory> |
| + |
| +#include "ui/aura/test/aura_test_base.h" |
| +#include "ui/aura/window.h" |
| +#include "ui/aura_extra/image_window_delegate.h" |
| + |
| +namespace chromecast { |
| +namespace test { |
| + |
| +using CastWindowManagerAuraTest = aura::test::AuraTestBase; |
| + |
| +TEST_F(CastWindowManagerAuraTest, SolidWindow) { |
| + std::unique_ptr<CastWindowManager> window_manager( |
| + CastWindowManager::Create(true /* enable input */)); |
| + |
| + aura_extra::ImageWindowDelegate* window_delegate( |
| + new aura_extra::ImageWindowDelegate); |
| + window_delegate->set_background_color(SK_ColorBLACK); |
| + std::unique_ptr<aura::Window> window(new aura::Window(window_delegate)); |
| + window->Init(ui::LAYER_TEXTURED); |
| + window_manager->AddWindow(window.get()); |
| + window->SetBounds(gfx::Rect(0, 0, 1280, 720)); |
| + window->Show(); |
|
halliwell
2017/01/24 00:54:46
What's this test checking? :)
Joshua LeVasseur
2017/01/24 03:39:50
I'd like to check that it displays the window, but
halliwell
2017/01/24 04:10:12
Fair enough. Maybe can find some useful assertion
|
| +} |
| + |
| +} // namespace test |
| +} // namespace chromecast |