Commit 6451dcf4 authored by Antonio Gomes's avatar Antonio Gomes Committed by Commit Bot

Remove unused TestTabletMode class

BUG=1113900
R=jamescook@chromium.org

Change-Id: I7e1eb50571f25a5713e4795fa34f3de07b1a3022
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2443394
Commit-Queue: James Cook <jamescook@chromium.org>
Reviewed-by: default avatarJames Cook <jamescook@chromium.org>
Auto-Submit: Antonio Gomes (GMT-4) <tonikitoo@igalia.com>
Cr-Commit-Position: refs/heads/master@{#812933}
parent 7d75edee
......@@ -424,8 +424,6 @@ source_set("test_support") {
"test/test_new_window_delegate.h",
"test/test_system_tray_client.cc",
"test/test_system_tray_client.h",
"test/test_tablet_mode.cc",
"test/test_tablet_mode.h",
]
deps = [
......
// Copyright 2020 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/public/cpp/test/test_tablet_mode.h"
namespace ash {
TestTabletMode::TestTabletMode() = default;
TestTabletMode::~TestTabletMode() = default;
void TestTabletMode::AddObserver(TabletModeObserver* observer) {}
void TestTabletMode::RemoveObserver(TabletModeObserver* observer) {}
bool TestTabletMode::InTabletMode() const {
return in_tablet_mode_;
}
void TestTabletMode::ForceUiTabletModeState(base::Optional<bool> enabled) {}
void TestTabletMode::SetEnabledForTest(bool enabled) {
in_tablet_mode_ = enabled;
}
} // namespace ash
\ No newline at end of file
// Copyright 2020 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_PUBLIC_CPP_TEST_TEST_TABLET_MODE_H_
#define ASH_PUBLIC_CPP_TEST_TEST_TABLET_MODE_H_
#include "ash/public/cpp/tablet_mode.h"
namespace ash {
// TabletMode implementation for test support.
class TestTabletMode : public TabletMode {
public:
TestTabletMode();
~TestTabletMode() override;
// TabletMode:
void AddObserver(ash::TabletModeObserver* observer) override;
void RemoveObserver(ash::TabletModeObserver* observer) override;
bool InTabletMode() const override;
void ForceUiTabletModeState(base::Optional<bool> enabled) override;
void SetEnabledForTest(bool enabled) override;
private:
bool in_tablet_mode_ = false;
};
} // namespace ash
#endif // ASH_PUBLIC_CPP_TEST_TEST_TABLET_MODE_H_
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment