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

Unified Diff: ash/common/wm/container_finder_unittest.cc

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (Closed)
Patch Set: Created 3 years, 9 months 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 | « ash/common/wm/container_finder.cc ('k') | ash/common/wm/default_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/container_finder_unittest.cc
diff --git a/ash/common/wm/container_finder_unittest.cc b/ash/common/wm/container_finder_unittest.cc
deleted file mode 100644
index cf9f96ddb55a86fc0f6134c6289e508a707594c1..0000000000000000000000000000000000000000
--- a/ash/common/wm/container_finder_unittest.cc
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2016 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 "ash/common/wm/container_finder.h"
-
-#include <memory>
-
-#include "ash/common/test/ash_test.h"
-#include "ash/common/wm_window.h"
-#include "ash/public/cpp/shell_window_ids.h"
-#include "ui/gfx/geometry/rect.h"
-#include "ui/views/widget/widget.h"
-
-namespace ash {
-
-using ContainerFinderTest = AshTest;
-
-TEST_F(ContainerFinderTest, GetContainerForWindow) {
- // Create a normal widget in the default container.
- std::unique_ptr<views::Widget> widget =
- CreateTestWidget(gfx::Rect(1, 2, 3, 4));
- WmWindow* window = WmWindow::Get(widget->GetNativeWindow());
-
- // The window itself is not a container.
- EXPECT_EQ(kShellWindowId_Invalid, window->GetShellWindowId());
-
- // Container lookup finds the default container.
- WmWindow* container = wm::GetContainerForWindow(window);
- ASSERT_TRUE(container);
- EXPECT_EQ(kShellWindowId_DefaultContainer, container->GetShellWindowId());
-}
-
-} // namespace ash
« no previous file with comments | « ash/common/wm/container_finder.cc ('k') | ash/common/wm/default_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698