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

Unified Diff: components/exo/shell_surface_unittest.cc

Issue 1491843002: exo: Add ShellSurface::SetApplicationId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/exo/shell_surface.cc ('k') | components/exo/wayland/server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/shell_surface_unittest.cc
diff --git a/components/exo/shell_surface_unittest.cc b/components/exo/shell_surface_unittest.cc
index 8fec1eb33bff350136888dca5cef9baec2baff2d..0f25a734950feb14822e2620f47ea5597106b02f 100644
--- a/components/exo/shell_surface_unittest.cc
+++ b/components/exo/shell_surface_unittest.cc
@@ -83,6 +83,19 @@ TEST_F(ShellSurfaceTest, SetTitle) {
surface->Commit();
}
+TEST_F(ShellSurfaceTest, SetApplicationId) {
+ scoped_ptr<Surface> surface(new Surface);
+ scoped_ptr<ShellSurface> shell_surface(new ShellSurface(surface.get()));
+
+ shell_surface->SetToplevel();
+ surface->Commit();
+ EXPECT_EQ("", ShellSurface::GetApplicationId(
+ shell_surface->GetWidget()->GetNativeWindow()));
+ shell_surface->SetApplicationId("test");
+ EXPECT_EQ("test", ShellSurface::GetApplicationId(
+ shell_surface->GetWidget()->GetNativeWindow()));
+}
+
void DestroyShellSurface(scoped_ptr<ShellSurface>* shell_surface) {
shell_surface->reset();
}
« no previous file with comments | « components/exo/shell_surface.cc ('k') | components/exo/wayland/server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698