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

Unified Diff: ash/test/test_palette_delegate.h

Issue 2826283004: Add MetalayerToolTest (Closed)
Patch Set: Created 3 years, 8 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/system/palette/tools/metalayer_unittest.cc ('k') | ash/test/test_palette_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/test_palette_delegate.h
diff --git a/ash/test/test_palette_delegate.h b/ash/test/test_palette_delegate.h
index 4fee8b00cfa1cdd50b7849db18f02ac1b32ae968..4bf0a31a18c20c51af6efc9df570214c273777b6 100644
--- a/ash/test/test_palette_delegate.h
+++ b/ash/test/test_palette_delegate.h
@@ -40,6 +40,14 @@ class TestPaletteDelegate : public PaletteDelegate {
should_show_palette_ = should_show_palette;
}
+ void set_is_metalayer_supported(bool is_metalayer_supported) {
+ is_metalayer_supported_ = is_metalayer_supported;
+ }
+
+ int show_metalayer_count() const { return show_metalayer_count_; }
+
+ base::Closure metalayer_closed() const { return metalayer_closed_; }
stevenjb 2017/04/26 17:21:05 If these are only used for testing, please append
oshima 2017/04/28 21:47:34 this is a test delegate, so this is fine. :)
stevenjb 2017/04/28 21:49:11 Oh, yeah, never mind :)
+
private:
// PaletteDelegate:
std::unique_ptr<EnableListenerSubscription> AddPaletteEnableListener(
@@ -63,6 +71,9 @@ class TestPaletteDelegate : public PaletteDelegate {
bool has_note_app_ = false;
bool should_auto_open_palette_ = false;
bool should_show_palette_ = false;
+ bool is_metalayer_supported_ = false;
+ int show_metalayer_count_ = 0;
+ base::Closure metalayer_closed_;
DISALLOW_COPY_AND_ASSIGN(TestPaletteDelegate);
};
« no previous file with comments | « ash/system/palette/tools/metalayer_unittest.cc ('k') | ash/test/test_palette_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698