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

Unified Diff: content/browser/renderer_host/render_widget_host_unittest.cc

Issue 2702153003: [content] Fix background color update handling in RWHVAura. (Closed)
Patch Set: add back static_casts since compile complains otherwise. Created 3 years, 10 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
Index: content/browser/renderer_host/render_widget_host_unittest.cc
diff --git a/content/browser/renderer_host/render_widget_host_unittest.cc b/content/browser/renderer_host/render_widget_host_unittest.cc
index 439ffccedb40398ae6ee560f5d6bc3cab984af69..7e52012ce79435a62dc035c21b15a3d864ef095d 100644
--- a/content/browser/renderer_host/render_widget_host_unittest.cc
+++ b/content/browser/renderer_host/render_widget_host_unittest.cc
@@ -876,9 +876,11 @@ TEST_F(RenderWidgetHostTest, Background) {
#endif
host_->SetView(view.get());
- EXPECT_TRUE(view->GetBackgroundOpaque());
+ EXPECT_NE(static_cast<unsigned>(SK_ColorTRANSPARENT),
+ view->background_color());
view->SetBackgroundColor(SK_ColorTRANSPARENT);
- EXPECT_FALSE(view->GetBackgroundOpaque());
+ EXPECT_EQ(static_cast<unsigned>(SK_ColorTRANSPARENT),
+ view->background_color());
const IPC::Message* set_background =
process_->sink().GetUniqueMessageMatching(

Powered by Google App Engine
This is Rietveld 408576698