OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "components/exo/shell_surface.h" |
| 6 #include "components/exo/surface.h" |
| 7 #include "components/exo/test/exo_test_base.h" |
| 8 #include "components/exo/test/exo_test_helper.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 |
| 11 namespace exo { |
| 12 namespace { |
| 13 |
| 14 using ShellSurfaceTest = test::ExoTestBase; |
| 15 |
| 16 TEST_F(ShellSurfaceTest, SetFullscreen) { |
| 17 scoped_ptr<Surface> surface(new Surface); |
| 18 scoped_ptr<ShellSurface> shell_surface(new ShellSurface(surface.get())); |
| 19 |
| 20 shell_surface->SetFullscreen(true); |
| 21 shell_surface->SetFullscreen(false); |
| 22 |
| 23 shell_surface.reset(); |
| 24 } |
| 25 |
| 26 TEST_F(ShellSurfaceTest, SetTitle) { |
| 27 scoped_ptr<Surface> surface(new Surface); |
| 28 scoped_ptr<ShellSurface> shell_surface(new ShellSurface(surface.get())); |
| 29 |
| 30 shell_surface->SetTitle("test"); |
| 31 shell_surface->SetTitle(std::string()); |
| 32 |
| 33 shell_surface.reset(); |
| 34 } |
| 35 |
| 36 } // namespace |
| 37 } // namespace exo |
OLD | NEW |