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

Unified Diff: chrome/browser/chromeos/volume_bubble_browsertest.cc

Issue 8319008: aura: brightness and volume bubble. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: update Created 9 years, 2 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 | « chrome/browser/chromeos/setting_level_bubble_view.cc ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/volume_bubble_browsertest.cc
diff --git a/chrome/browser/chromeos/volume_bubble_browsertest.cc b/chrome/browser/chromeos/volume_bubble_browsertest.cc
new file mode 100644
index 0000000000000000000000000000000000000000..cbe61781ed6bb435c725d085120c0cdc515ce221
--- /dev/null
+++ b/chrome/browser/chromeos/volume_bubble_browsertest.cc
@@ -0,0 +1,30 @@
+// 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/chromeos/volume_bubble.h"
+#include "chrome/test/base/in_process_browser_test.h"
+#include "chrome/browser/chromeos/setting_level_bubble_view.h"
+#include "views/view.h"
+
+typedef InProcessBrowserTest VolumeBubbleTest;
+
+namespace chromeos {
+
+IN_PROC_BROWSER_TEST_F(VolumeBubbleTest, GetInstanceAndShow) {
+ VolumeBubble* bubble1 = VolumeBubble::GetInstance();
+ VolumeBubble* bubble2 = VolumeBubble::GetInstance();
+ ASSERT_EQ(bubble1, bubble2);
+
+ bubble1->ShowBubble(20, true);
+ EXPECT_TRUE(bubble1->view_ != NULL);
+ EXPECT_TRUE(bubble1->view_->IsVisible());
+ views::View* saved_view = bubble1->view_;
+ bubble1->HideBubble();
+ EXPECT_EQ(NULL, bubble1->view_);
+ bubble1->ShowBubble(20, true);
+ EXPECT_TRUE(bubble1->view_ != NULL);
+ EXPECT_NE(saved_view, bubble1->view_);
+}
+
+} // namespace chromeos
« no previous file with comments | « chrome/browser/chromeos/setting_level_bubble_view.cc ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698