| Index: components/exo/shell_surface_unittest.cc
|
| diff --git a/components/exo/shell_surface_unittest.cc b/components/exo/shell_surface_unittest.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5edbeefe506f2b72a381cf5a49e9df62ce78f79c
|
| --- /dev/null
|
| +++ b/components/exo/shell_surface_unittest.cc
|
| @@ -0,0 +1,37 @@
|
| +// Copyright 2015 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 "components/exo/shell_surface.h"
|
| +#include "components/exo/surface.h"
|
| +#include "components/exo/test/exo_test_base.h"
|
| +#include "components/exo/test/exo_test_helper.h"
|
| +#include "testing/gtest/include/gtest/gtest.h"
|
| +
|
| +namespace exo {
|
| +namespace {
|
| +
|
| +using ShellSurfaceTest = test::ExoTestBase;
|
| +
|
| +TEST_F(ShellSurfaceTest, SetFullscreen) {
|
| + scoped_ptr<Surface> surface(new Surface);
|
| + scoped_ptr<ShellSurface> shell_surface(new ShellSurface(surface.get()));
|
| +
|
| + shell_surface->SetFullscreen(true);
|
| + shell_surface->SetFullscreen(false);
|
| +
|
| + shell_surface.reset();
|
| +}
|
| +
|
| +TEST_F(ShellSurfaceTest, SetTitle) {
|
| + scoped_ptr<Surface> surface(new Surface);
|
| + scoped_ptr<ShellSurface> shell_surface(new ShellSurface(surface.get()));
|
| +
|
| + shell_surface->SetTitle("test");
|
| + shell_surface->SetTitle(std::string());
|
| +
|
| + shell_surface.reset();
|
| +}
|
| +
|
| +} // namespace
|
| +} // namespace exo
|
|
|