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

Unified Diff: ash/test/test_overlay_delegate.cc

Issue 461093003: Fix the bug of multiple overlays. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more tests Created 6 years, 4 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/test_overlay_delegate.cc
diff --git a/ash/test/test_overlay_delegate.cc b/ash/test/test_overlay_delegate.cc
new file mode 100644
index 0000000000000000000000000000000000000000..404e90988b54acb1c078ba0e7e8c1dc980c19265
--- /dev/null
+++ b/ash/test/test_overlay_delegate.cc
@@ -0,0 +1,33 @@
+// Copyright 2014 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/test/test_overlay_delegate.h"
+
+namespace ash {
+namespace test {
+
+TestOverlayDelegate::TestOverlayDelegate()
+ : cancel_count_(0) {}
+TestOverlayDelegate::~TestOverlayDelegate() {}
+
+int TestOverlayDelegate::GetCancelCountAndReset() {
+ int count = cancel_count_;
+ cancel_count_ = 0;
+ return count;
+}
+
+void TestOverlayDelegate::Cancel() {
+ ++cancel_count_;
+}
+
+bool TestOverlayDelegate::IsCancelingKeyEvent(ui::KeyEvent* event) {
+ return false;
+}
+
+aura::Window* TestOverlayDelegate::GetWindow() {
+ return NULL;
+}
+
+} // namespace test
+} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698