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

Unified Diff: ash/test/ash_test_impl_aura.h

Issue 2374893002: Adds AshTest (Closed)
Patch Set: real feedback Created 4 years, 3 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
Index: ash/test/ash_test_impl_aura.h
diff --git a/ash/test/ash_test_impl_aura.h b/ash/test/ash_test_impl_aura.h
new file mode 100644
index 0000000000000000000000000000000000000000..c395899c37819bf33d53749261dc41625034243c
--- /dev/null
+++ b/ash/test/ash_test_impl_aura.h
@@ -0,0 +1,44 @@
+// 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.
+
+#ifndef ASH_MUS_TEST_ASH_TEST_IMPL_AURA_H_
+#define ASH_MUS_TEST_ASH_TEST_IMPL_AURA_H_
+
+#include "ash/common/test/ash_test_impl.h"
+
+namespace ash {
+namespace test {
+class AshTestBase;
+}
+
+// Implementation of AshTestImpl on top of aura. Implementation of AshTestImpl
+// calls through to AshTestBase.
+class AshTestImplAura : public AshTestImpl {
+ public:
+ AshTestImplAura();
+ ~AshTestImplAura() override;
+
+ // AshTestImpl:
+ void SetUp() override;
+ void TearDown() override;
+ bool SupportsMultipleDisplays() const override;
+ void UpdateDisplay(const std::string& display_spec) override;
+ std::unique_ptr<WindowOwner> CreateTestWindow(
+ const gfx::Rect& bounds_in_screen,
+ ui::wm::WindowType type,
+ int shell_window_id) override;
+ display::Display GetSecondaryDisplay() override;
+ bool SetSecondaryDisplayPlacement(
+ display::DisplayPlacement::Position position,
+ int offset) override;
+
+ private:
+ std::unique_ptr<test::AshTestBase> ash_test_base_;
+
+ DISALLOW_COPY_AND_ASSIGN(AshTestImplAura);
+};
+
+} // namespace ash
+
+#endif // ASH_MUS_TEST_ASH_TEST_IMPL_AURA_H_

Powered by Google App Engine
This is Rietveld 408576698