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

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

Issue 8319008: aura: brightness and volume bubble. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: styles 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
Index: chrome/browser/chromeos/brightness_bubble_browsertest.cc
diff --git a/chrome/browser/chromeos/brightness_bubble_browsertest.cc b/chrome/browser/chromeos/brightness_bubble_browsertest.cc
new file mode 100644
index 0000000000000000000000000000000000000000..439c49569a311b510665c92cd5c3244de03ebaaa
--- /dev/null
+++ b/chrome/browser/chromeos/brightness_bubble_browsertest.cc
@@ -0,0 +1,24 @@
+// 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 "base/message_loop.h"
+#include "chrome/browser/chromeos/brightness_bubble.h"
+#include "chrome/browser/chromeos/setting_level_bubble_view.h"
+#include "chrome/test/base/in_process_browser_test.h"
+#include "third_party/skia/include/core/SkBitmap.h"
+#include "views/view.h"
+
+typedef InProcessBrowserTest BrightnessBubbleTest;
+
+namespace chromeos {
+
+IN_PROC_BROWSER_TEST_F(BrightnessBubbleTest, UpdateWithoutShowing) {
+ BrightnessBubble* bubble = BrightnessBubble::GetInstance();
+ bubble->UpdateWithoutShowingBubble(20, false);
+ EXPECT_FALSE(bubble->view_->GetWidget()->IsVisible());
+ bubble->ShowBubble(50, true);
+ EXPECT_TRUE(bubble->view_->GetWidget()->IsVisible());
+}
+
+} // namespace chromeos
« no previous file with comments | « no previous file | chrome/browser/chromeos/setting_level_bubble.h » ('j') | chrome/browser/chromeos/setting_level_bubble.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698