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

Side by Side Diff: chrome/browser/chromeos/setting_level_bubble_browsertest.cc

Issue 8742030: views: Move view.h to ui/views/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase and fix conflicts Created 9 years 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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/message_loop.h" 5 #include "base/message_loop.h"
6 #include "chrome/browser/chromeos/setting_level_bubble.h" 6 #include "chrome/browser/chromeos/setting_level_bubble.h"
7 #include "chrome/browser/chromeos/setting_level_bubble_view.h" 7 #include "chrome/browser/chromeos/setting_level_bubble_view.h"
8 #include "chrome/test/base/in_process_browser_test.h" 8 #include "chrome/test/base/in_process_browser_test.h"
9 #include "third_party/skia/include/core/SkBitmap.h" 9 #include "third_party/skia/include/core/SkBitmap.h"
10 #include "ui/views/controls/progress_bar.h" 10 #include "ui/views/controls/progress_bar.h"
11 #include "views/view.h" 11 #include "ui/views/view.h"
12 12
13 13
14 class SettingLevelBubbleTest : public InProcessBrowserTest { 14 class SettingLevelBubbleTest : public InProcessBrowserTest {
15 public: 15 public:
16 SettingLevelBubbleTest() { 16 SettingLevelBubbleTest() {
17 up_icon_.setConfig(SkBitmap::kARGB_8888_Config, 10, 10); 17 up_icon_.setConfig(SkBitmap::kARGB_8888_Config, 10, 10);
18 down_icon_.setConfig(SkBitmap::kARGB_8888_Config, 5, 5); 18 down_icon_.setConfig(SkBitmap::kARGB_8888_Config, 5, 5);
19 mute_icon_.setConfig(SkBitmap::kARGB_8888_Config, 1, 1); 19 mute_icon_.setConfig(SkBitmap::kARGB_8888_Config, 1, 1);
20 } 20 }
21 21
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 EXPECT_TRUE(bubble.view_ != NULL); 80 EXPECT_TRUE(bubble.view_ != NULL);
81 EXPECT_TRUE(bubble.view_->GetWidget()->IsVisible()); 81 EXPECT_TRUE(bubble.view_->GetWidget()->IsVisible());
82 82
83 // Update to 0 percent and close. 83 // Update to 0 percent and close.
84 bubble.UpdateWithoutShowingBubble(0, true); 84 bubble.UpdateWithoutShowingBubble(0, true);
85 bubble.OnWidgetClosing(bubble.view_->GetWidget()); 85 bubble.OnWidgetClosing(bubble.view_->GetWidget());
86 EXPECT_EQ(0, bubble.current_percent_); 86 EXPECT_EQ(0, bubble.current_percent_);
87 } 87 }
88 88
89 } // namespace chromeos 89 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/panels/panel_scroller_header.h ('k') | chrome/browser/chromeos/setting_level_bubble_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698