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

Unified Diff: ash/test/test_palette_delegate.cc

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
« ash/test/test_palette_delegate.h ('K') | « ash/test/test_palette_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/test_palette_delegate.cc
diff --git a/ash/test/test_palette_delegate.cc b/ash/test/test_palette_delegate.cc
index 5110f2661c808aa01bc61cbf5399f24362f810e4..eb529bf5bf295afe584bfc29ab2791719b92a1f6 100644
--- a/ash/test/test_palette_delegate.cc
+++ b/ash/test/test_palette_delegate.cc
@@ -45,10 +45,13 @@ void TestPaletteDelegate::TakePartialScreenshot(const base::Closure& done) {
void TestPaletteDelegate::CancelPartialScreenshot() {}
bool TestPaletteDelegate::IsMetalayerSupported() {
- return false;
+ return is_metalayer_supported_;
}
-void TestPaletteDelegate::ShowMetalayer(const base::Closure& closed) {}
+void TestPaletteDelegate::ShowMetalayer(const base::Closure& closed) {
+ ++show_metalayer_count_;
+ metalayer_closed_ = closed;
+}
void TestPaletteDelegate::HideMetalayer() {}
« ash/test/test_palette_delegate.h ('K') | « ash/test/test_palette_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698