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

Unified Diff: views/controls/progress_bar_unittest.cc

Issue 8687031: views: Move the remaining files to ui/views/controls/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « views/controls/progress_bar.cc ('k') | views/controls/resize_area.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/progress_bar_unittest.cc
diff --git a/views/controls/progress_bar_unittest.cc b/views/controls/progress_bar_unittest.cc
deleted file mode 100644
index 7d62b990ecd9f317e8a3c29c18f081e93bd9bf5d..0000000000000000000000000000000000000000
--- a/views/controls/progress_bar_unittest.cc
+++ /dev/null
@@ -1,35 +0,0 @@
-// 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/string_util.h"
-#include "base/utf_string_conversions.h"
-#include "testing/gtest/include/gtest/gtest.h"
-#include "ui/base/accessibility/accessible_view_state.h"
-#include "views/controls/progress_bar.h"
-
-namespace views {
-
-TEST(ProgressBarTest, TooltipTextProperty) {
- ProgressBar bar;
- string16 tooltip = ASCIIToUTF16("Some text");
- EXPECT_FALSE(bar.GetTooltipText(gfx::Point(), &tooltip));
- EXPECT_EQ(string16(), tooltip);
- string16 tooltip_text = ASCIIToUTF16("My progress");
- bar.SetTooltipText(tooltip_text);
- EXPECT_TRUE(bar.GetTooltipText(gfx::Point(), &tooltip));
- EXPECT_EQ(tooltip_text, tooltip);
-}
-
-TEST(ProgressBarTest, Accessibility) {
- ProgressBar bar;
- bar.SetValue(62);
-
- ui::AccessibleViewState state;
- bar.GetAccessibleState(&state);
- EXPECT_EQ(ui::AccessibilityTypes::ROLE_PROGRESSBAR, state.role);
- EXPECT_EQ(string16(), state.name);
- EXPECT_TRUE(ui::AccessibilityTypes::STATE_READONLY & state.state);
-}
-
-} // namespace views
« no previous file with comments | « views/controls/progress_bar.cc ('k') | views/controls/resize_area.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698