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

Unified Diff: ui/views/controls/button/label_button_unittest.cc

Issue 2240603002: Harmony checkbox/radio tweaks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/controls/button/label_button.cc ('k') | ui/views/controls/button/radio_button.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/label_button_unittest.cc
diff --git a/ui/views/controls/button/label_button_unittest.cc b/ui/views/controls/button/label_button_unittest.cc
index 702ed688f2baed7e54ea34a2995dd0b4e60ecd85..5c62da8d425b77a2f1427393297c1b3d02caaf32 100644
--- a/ui/views/controls/button/label_button_unittest.cc
+++ b/ui/views/controls/button/label_button_unittest.cc
@@ -80,12 +80,13 @@ class LabelButtonTest : public test::WidgetTest {
// Establish the expected text colors for testing changes due to state.
themed_normal_text_color_ = button_->GetNativeTheme()->GetSystemColor(
- ui::NativeTheme::kColorId_ButtonEnabledColor);
+ ui::NativeTheme::kColorId_LabelEnabledColor);
#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
// The Linux theme provides a non-black highlight text color, but it's not
// used for styled buttons.
- styled_highlight_text_color_ = themed_normal_text_color_;
- styled_normal_text_color_ = themed_normal_text_color_;
+ styled_highlight_text_color_ = styled_normal_text_color_ =
+ button_->GetNativeTheme()->GetSystemColor(
+ ui::NativeTheme::kColorId_ButtonEnabledColor);
#else
styled_highlight_text_color_ = button_->GetNativeTheme()->GetSystemColor(
ui::NativeTheme::kColorId_ButtonHighlightColor);
« no previous file with comments | « ui/views/controls/button/label_button.cc ('k') | ui/views/controls/button/radio_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698