OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "base/message_loop.h" |
| 6 #include "chrome/browser/chromeos/brightness_bubble.h" |
| 7 #include "chrome/browser/chromeos/setting_level_bubble_view.h" |
| 8 #include "chrome/test/base/in_process_browser_test.h" |
| 9 #include "third_party/skia/include/core/SkBitmap.h" |
| 10 #include "views/view.h" |
| 11 |
| 12 typedef InProcessBrowserTest BrightnessBubbleTest; |
| 13 |
| 14 namespace chromeos { |
| 15 |
| 16 IN_PROC_BROWSER_TEST_F(BrightnessBubbleTest, UpdateWithoutShowing) { |
| 17 BrightnessBubble* bubble = BrightnessBubble::GetInstance(); |
| 18 bubble->UpdateWithoutShowingBubble(20, false); |
| 19 EXPECT_FALSE(bubble->view_->GetWidget()->IsVisible()); |
| 20 bubble->ShowBubble(50, true); |
| 21 EXPECT_TRUE(bubble->view_->GetWidget()->IsVisible()); |
| 22 } |
| 23 |
| 24 } // namespace chromeos |
OLD | NEW |