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

Unified Diff: chrome/browser/ui/panels/test_panel_mouse_watcher.cc

Issue 8744005: Refactor PanelManager to create PanelStrip. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address nits Created 9 years, 1 month 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 | « chrome/browser/ui/panels/test_panel_mouse_watcher.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/test_panel_mouse_watcher.cc
diff --git a/chrome/browser/ui/panels/test_panel_mouse_watcher.cc b/chrome/browser/ui/panels/test_panel_mouse_watcher.cc
new file mode 100644
index 0000000000000000000000000000000000000000..ddc21a1d88379aaf1e790b7dafbb363a504ef37e
--- /dev/null
+++ b/chrome/browser/ui/panels/test_panel_mouse_watcher.cc
@@ -0,0 +1,29 @@
+// Copyright (c) 2011 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 "chrome/browser/ui/panels/test_panel_mouse_watcher.h"
+
+#include "testing/gtest/include/gtest/gtest.h"
+
+TestPanelMouseWatcher::TestPanelMouseWatcher()
+ : started_(false) {
+}
+
+TestPanelMouseWatcher::~TestPanelMouseWatcher() {
+ EXPECT_FALSE(IsActive());
+}
+
+void TestPanelMouseWatcher::Start() {
+ EXPECT_FALSE(IsActive());
+ started_ = true;
+}
+
+void TestPanelMouseWatcher::Stop() {
+ EXPECT_TRUE(IsActive());
+ started_ = false;
+}
+
+bool TestPanelMouseWatcher::IsActive() const {
+ return started_;
+}
« no previous file with comments | « chrome/browser/ui/panels/test_panel_mouse_watcher.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698