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

Side by Side Diff: content/browser/renderer_host/render_widget_host_unittest.cc

Issue 2528823002: Separate SwipeRefreshHandler and ContentViewCore (Closed)
Patch Set: Fix compile error in test case 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include <memory> 8 #include <memory>
9 #include <tuple> 9 #include <tuple>
10 10
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after
868 // Unable to include render_widget_host_view_mac.h and compile. 868 // Unable to include render_widget_host_view_mac.h and compile.
869 #if !defined(OS_MACOSX) 869 #if !defined(OS_MACOSX)
870 // Tests setting background transparency. 870 // Tests setting background transparency.
871 TEST_F(RenderWidgetHostTest, Background) { 871 TEST_F(RenderWidgetHostTest, Background) {
872 std::unique_ptr<RenderWidgetHostViewBase> view; 872 std::unique_ptr<RenderWidgetHostViewBase> view;
873 #if defined(USE_AURA) 873 #if defined(USE_AURA)
874 view.reset(new RenderWidgetHostViewAura(host_.get(), false)); 874 view.reset(new RenderWidgetHostViewAura(host_.get(), false));
875 // TODO(derat): Call this on all platforms: http://crbug.com/102450. 875 // TODO(derat): Call this on all platforms: http://crbug.com/102450.
876 view->InitAsChild(NULL); 876 view->InitAsChild(NULL);
877 #elif defined(OS_ANDROID) 877 #elif defined(OS_ANDROID)
878 view.reset(new RenderWidgetHostViewAndroid(host_.get(), NULL)); 878 view.reset(new RenderWidgetHostViewAndroid(host_.get(), nullptr, nullptr));
879 #endif 879 #endif
880 host_->SetView(view.get()); 880 host_->SetView(view.get());
881 881
882 EXPECT_TRUE(view->GetBackgroundOpaque()); 882 EXPECT_TRUE(view->GetBackgroundOpaque());
883 view->SetBackgroundColor(SK_ColorTRANSPARENT); 883 view->SetBackgroundColor(SK_ColorTRANSPARENT);
884 EXPECT_FALSE(view->GetBackgroundOpaque()); 884 EXPECT_FALSE(view->GetBackgroundOpaque());
885 885
886 const IPC::Message* set_background = 886 const IPC::Message* set_background =
887 process_->sink().GetUniqueMessageMatching( 887 process_->sink().GetUniqueMessageMatching(
888 ViewMsg_SetBackgroundOpaque::ID); 888 ViewMsg_SetBackgroundOpaque::ID);
(...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after
1715 ui::LatencyInfo()); 1715 ui::LatencyInfo());
1716 1716
1717 1717
1718 // Tests RWHI::ForwardWheelEventWithLatencyInfo(). 1718 // Tests RWHI::ForwardWheelEventWithLatencyInfo().
1719 SimulateWheelEventWithLatencyInfo(-5, 0, 0, true, ui::LatencyInfo()); 1719 SimulateWheelEventWithLatencyInfo(-5, 0, 0, true, ui::LatencyInfo());
1720 1720
1721 ASSERT_FALSE(host_->input_router()->HasPendingEvents()); 1721 ASSERT_FALSE(host_->input_router()->HasPendingEvents());
1722 } 1722 }
1723 1723
1724 } // namespace content 1724 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698