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

Unified Diff: content/browser/web_contents/web_contents_impl_unittest.cc

Issue 2563233002: WebContentsImpl: IPC_BEGIN_MESSAGE_MAP_WITH_PARAM everywhere (Closed)
Patch Set: Fix comments. Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_impl_unittest.cc
diff --git a/content/browser/web_contents/web_contents_impl_unittest.cc b/content/browser/web_contents/web_contents_impl_unittest.cc
index 08413755370f5e435379a981d80141bf0148f686..13e0f52dbfedb57a9eb32154bb2397adefeaeb31 100644
--- a/content/browser/web_contents/web_contents_impl_unittest.cc
+++ b/content/browser/web_contents/web_contents_impl_unittest.cc
@@ -3306,8 +3306,7 @@ TEST_F(WebContentsImplTest, ThemeColorChangeDependingOnFirstVisiblePaint) {
// Theme color changes should not propagate past the WebContentsImpl before
// the first visually non-empty paint has occurred.
- RenderViewHostTester::TestOnMessageReceived(
- test_rvh(),
+ rfh->OnMessageReceived(
FrameHostMsg_DidChangeThemeColor(rfh->GetRoutingID(), SK_ColorRED));
EXPECT_EQ(SK_ColorRED, contents()->GetThemeColor());
@@ -3317,14 +3316,13 @@ TEST_F(WebContentsImplTest, ThemeColorChangeDependingOnFirstVisiblePaint) {
// propagate the current theme color to the delegates.
RenderViewHostTester::TestOnMessageReceived(
test_rvh(),
- ViewHostMsg_DidFirstVisuallyNonEmptyPaint(rfh->GetRoutingID()));
+ ViewHostMsg_DidFirstVisuallyNonEmptyPaint(test_rvh()->GetRoutingID()));
EXPECT_EQ(SK_ColorRED, contents()->GetThemeColor());
EXPECT_EQ(SK_ColorRED, observer.last_theme_color());
// Additional changes made by the web contents should propagate as well.
- RenderViewHostTester::TestOnMessageReceived(
- test_rvh(),
+ rfh->OnMessageReceived(
FrameHostMsg_DidChangeThemeColor(rfh->GetRoutingID(), SK_ColorGREEN));
EXPECT_EQ(SK_ColorGREEN, contents()->GetThemeColor());
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698