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/volume_bubble.h" | |
7 #include "chrome/test/base/in_process_browser_test.h" | |
8 #include "chrome/browser/chromeos/setting_level_bubble_view.h" | |
9 #include "third_party/skia/include/core/SkBitmap.h" | |
msw
2011/10/26 18:51:42
Is SkBitmap needed here?
Please keep includes to w
alicet1
2011/10/27 00:34:51
Done.
| |
10 #include "views/view.h" | |
11 | |
12 typedef InProcessBrowserTest VolumeBubbleTest; | |
13 | |
14 namespace chromeos { | |
15 | |
16 IN_PROC_BROWSER_TEST_F(VolumeBubbleTest, GetInstanceAndShow) { | |
17 VolumeBubble* bubble1 = VolumeBubble::GetInstance(); | |
18 VolumeBubble* bubble2 = VolumeBubble::GetInstance(); | |
19 ASSERT_EQ(bubble1, bubble2); | |
20 | |
21 bubble1->ShowBubble(20, true); | |
22 EXPECT_TRUE(bubble1->view_ != NULL); | |
msw
2011/10/26 18:51:42
Use EXPECT_EQ and EXPECT_NE for several checks in
alicet1
2011/10/27 00:34:51
done. see response in setting_level_bubble_browser
| |
23 EXPECT_TRUE(bubble1->view_->IsVisible()); | |
24 views::View* saved_view = bubble1->view_; | |
25 bubble1->HideBubble(); | |
26 EXPECT_TRUE(bubble1->view_ == NULL); | |
27 bubble1->ShowBubble(20, true); | |
28 EXPECT_TRUE(bubble1->view_ != NULL); | |
29 EXPECT_FALSE(bubble1->view_ == saved_view); | |
msw
2011/10/26 18:51:42
EXPECT_NE
alicet1
2011/10/27 00:34:51
Done.
| |
30 } | |
31 | |
32 } // namespace chromeos | |
OLD | NEW |