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

Side by Side 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: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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/test/base/in_process_browser_test.h"
8 #include "third_party/skia/include/core/SkBitmap.h"
9 #include "views/widget/widget.h"
10
11 typedef InProcessBrowserTest BrightnessBubbleTest;
12
13 namespace chromeos {
14
15 IN_PROC_BROWSER_TEST_F(BrightnessBubbleTest, UpdateWithoutShowing) {
16 BrightnessBubble* bubble = BrightnessBubble::GetInstance();
17 bubble->UpdateWithoutShowingBubble(20, true);
18 EXPECT_FALSE(bubble->widget_->IsVisible());
19 bubble->ShowBubble(50, true);
20 EXPECT_TRUE(bubble->widget_->IsVisible());
21 }
22
23 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698