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

Side by Side Diff: components/exo/shell_surface_unittest.cc

Issue 1412093006: components: Add Exosphere component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add ShellSurface::SetTitle Created 5 years, 1 month 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698