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

Unified Diff: ash/common/test/test_palette_delegate.h

Issue 2734653002: chromeos: Move files in //ash/common to //ash (Closed)
Patch Set: fix a11y tests, fix docs Created 3 years, 10 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/test/ash_test_impl.h ('k') | ash/common/test/test_palette_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/test/test_palette_delegate.h
diff --git a/ash/common/test/test_palette_delegate.h b/ash/common/test/test_palette_delegate.h
deleted file mode 100644
index f0fc5e5506b989178fef2af5204b97f8e799928a..0000000000000000000000000000000000000000
--- a/ash/common/test/test_palette_delegate.h
+++ /dev/null
@@ -1,69 +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.
-
-#ifndef ASH_COMMON_TEST_TEST_PALETTE_DELEGATE_H_
-#define ASH_COMMON_TEST_TEST_PALETTE_DELEGATE_H_
-
-#include "ash/common/palette_delegate.h"
-#include "base/macros.h"
-
-namespace ash {
-
-// A simple test double for a PaletteDelegate.
-class TestPaletteDelegate : public PaletteDelegate {
- public:
- TestPaletteDelegate();
- ~TestPaletteDelegate() override;
-
- int create_note_count() const { return create_note_count_; }
-
- int has_note_app_count() const { return has_note_app_count_; }
-
- int take_screenshot_count() const { return take_screenshot_count_; }
-
- int take_partial_screenshot_count() const {
- return take_partial_screenshot_count_;
- }
-
- base::Closure partial_screenshot_done() const {
- return partial_screenshot_done_;
- }
-
- void set_has_note_app(bool has_note_app) { has_note_app_ = has_note_app; }
-
- void set_should_auto_open_palette(bool should_auto_open_palette) {
- should_auto_open_palette_ = should_auto_open_palette;
- }
-
- void set_should_show_palette(bool should_show_palette) {
- should_show_palette_ = should_show_palette;
- }
-
- private:
- // PaletteDelegate:
- std::unique_ptr<EnableListenerSubscription> AddPaletteEnableListener(
- const EnableListener& on_state_changed) override;
- void CreateNote() override;
- bool HasNoteApp() override;
- bool ShouldAutoOpenPalette() override;
- bool ShouldShowPalette() override;
- void TakeScreenshot() override;
- void TakePartialScreenshot(const base::Closure& done) override;
- void CancelPartialScreenshot() override;
-
- int create_note_count_ = 0;
- int has_note_app_count_ = 0;
- int take_screenshot_count_ = 0;
- int take_partial_screenshot_count_ = 0;
- base::Closure partial_screenshot_done_;
- bool has_note_app_ = false;
- bool should_auto_open_palette_ = false;
- bool should_show_palette_ = false;
-
- DISALLOW_COPY_AND_ASSIGN(TestPaletteDelegate);
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_TEST_TEST_PALETTE_DELEGATE_H_
« no previous file with comments | « ash/common/test/ash_test_impl.h ('k') | ash/common/test/test_palette_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698