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

Side by Side Diff: third_party/WebKit/Source/web/tests/WebFrameTest.cpp

Issue 2848513002: Introduce the abstract class WebViewBase, to decouple WebViewImpl. (Closed)
Patch Set: Fix typo. Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 #include "core/dom/NodeComputedStyle.h" 51 #include "core/dom/NodeComputedStyle.h"
52 #include "core/dom/Range.h" 52 #include "core/dom/Range.h"
53 #include "core/editing/Editor.h" 53 #include "core/editing/Editor.h"
54 #include "core/editing/EphemeralRange.h" 54 #include "core/editing/EphemeralRange.h"
55 #include "core/editing/FrameSelection.h" 55 #include "core/editing/FrameSelection.h"
56 #include "core/editing/VisiblePosition.h" 56 #include "core/editing/VisiblePosition.h"
57 #include "core/editing/markers/DocumentMarkerController.h" 57 #include "core/editing/markers/DocumentMarkerController.h"
58 #include "core/editing/spellcheck/IdleSpellCheckCallback.h" 58 #include "core/editing/spellcheck/IdleSpellCheckCallback.h"
59 #include "core/editing/spellcheck/SpellChecker.h" 59 #include "core/editing/spellcheck/SpellChecker.h"
60 #include "core/events/MouseEvent.h" 60 #include "core/events/MouseEvent.h"
61 #include "core/exported/WebViewBase.h"
61 #include "core/frame/FrameView.h" 62 #include "core/frame/FrameView.h"
62 #include "core/frame/LocalFrame.h" 63 #include "core/frame/LocalFrame.h"
63 #include "core/frame/RemoteFrame.h" 64 #include "core/frame/RemoteFrame.h"
64 #include "core/frame/Settings.h" 65 #include "core/frame/Settings.h"
65 #include "core/frame/VisualViewport.h" 66 #include "core/frame/VisualViewport.h"
66 #include "core/html/HTMLBodyElement.h" 67 #include "core/html/HTMLBodyElement.h"
67 #include "core/html/HTMLFormElement.h" 68 #include "core/html/HTMLFormElement.h"
68 #include "core/html/HTMLIFrameElement.h" 69 #include "core/html/HTMLIFrameElement.h"
69 #include "core/html/HTMLVideoElement.h" 70 #include "core/html/HTMLVideoElement.h"
70 #include "core/html/ImageDocument.h" 71 #include "core/html/ImageDocument.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 #include "public/web/WebTextCheckClient.h" 146 #include "public/web/WebTextCheckClient.h"
146 #include "public/web/WebTextCheckingCompletion.h" 147 #include "public/web/WebTextCheckingCompletion.h"
147 #include "public/web/WebTextCheckingResult.h" 148 #include "public/web/WebTextCheckingResult.h"
148 #include "public/web/WebViewClient.h" 149 #include "public/web/WebViewClient.h"
149 #include "testing/gmock/include/gmock/gmock.h" 150 #include "testing/gmock/include/gmock/gmock.h"
150 #include "testing/gtest/include/gtest/gtest.h" 151 #include "testing/gtest/include/gtest/gtest.h"
151 #include "v8/include/v8.h" 152 #include "v8/include/v8.h"
152 #include "web/TextFinder.h" 153 #include "web/TextFinder.h"
153 #include "web/WebLocalFrameImpl.h" 154 #include "web/WebLocalFrameImpl.h"
154 #include "web/WebRemoteFrameImpl.h" 155 #include "web/WebRemoteFrameImpl.h"
155 #include "web/WebViewImpl.h"
156 #include "web/tests/FrameTestHelpers.h" 156 #include "web/tests/FrameTestHelpers.h"
157 #include "web/tests/sim/SimDisplayItemList.h" 157 #include "web/tests/sim/SimDisplayItemList.h"
158 #include "web/tests/sim/SimRequest.h" 158 #include "web/tests/sim/SimRequest.h"
159 #include "web/tests/sim/SimTest.h" 159 #include "web/tests/sim/SimTest.h"
160 160
161 using blink::URLTestHelpers::ToKURL; 161 using blink::URLTestHelpers::ToKURL;
162 using blink::testing::RunPendingTasks; 162 using blink::testing::RunPendingTasks;
163 using testing::ElementsAre; 163 using testing::ElementsAre;
164 using testing::Mock; 164 using testing::Mock;
165 using testing::_; 165 using testing::_;
(...skipping 11876 matching lines...) Expand 10 before | Expand all | Expand 10 after
12042 12042
12043 // Failing the original child frame navigation and trying to render fallback 12043 // Failing the original child frame navigation and trying to render fallback
12044 // content shouldn't crash. It should return NoLoadInProgress. This is so the 12044 // content shouldn't crash. It should return NoLoadInProgress. This is so the
12045 // caller won't attempt to replace the correctly empty frame with an error 12045 // caller won't attempt to replace the correctly empty frame with an error
12046 // page. 12046 // page.
12047 EXPECT_EQ(WebLocalFrame::NoLoadInProgress, 12047 EXPECT_EQ(WebLocalFrame::NoLoadInProgress,
12048 child->MaybeRenderFallbackContent(WebURLError())); 12048 child->MaybeRenderFallbackContent(WebURLError()));
12049 } 12049 }
12050 12050
12051 } // namespace blink 12051 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698