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

Side by Side Diff: content/public/test/render_view_test.h

Issue 2504163005: Fix getting initially active trials with shared memory. (Closed)
Patch Set: Use typedefs 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 #ifndef CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ 5 #ifndef CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_
6 #define CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ 6 #define CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 12
13 #include "base/command_line.h" 13 #include "base/command_line.h"
14 #include "base/message_loop/message_loop.h" 14 #include "base/message_loop/message_loop.h"
15 #include "base/strings/string16.h" 15 #include "base/strings/string16.h"
16 #include "base/test/test_io_thread.h" 16 #include "base/test/test_io_thread.h"
17 #include "build/build_config.h" 17 #include "build/build_config.h"
18 #include "content/public/browser/native_web_keyboard_event.h" 18 #include "content/public/browser/native_web_keyboard_event.h"
19 #include "content/public/common/main_function_params.h" 19 #include "content/public/common/main_function_params.h"
20 #include "content/public/common/page_state.h" 20 #include "content/public/common/page_state.h"
21 #include "content/public/test/mock_render_thread.h" 21 #include "content/public/test/mock_render_thread.h"
22 #include "mojo/edk/test/scoped_ipc_support.h" 22 #include "mojo/edk/test/scoped_ipc_support.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 #include "third_party/WebKit/public/platform/Platform.h" 24 #include "third_party/WebKit/public/platform/Platform.h"
25 #include "third_party/WebKit/public/web/WebFrame.h" 25 #include "third_party/WebKit/public/web/WebFrame.h"
26 #include "third_party/WebKit/public/web/WebLeakDetector.h" 26 #include "third_party/WebKit/public/web/WebLeakDetector.h"
27 27
28 namespace base {
29 class FieldTrialList;
30 }
31
28 namespace blink { 32 namespace blink {
29 namespace scheduler { 33 namespace scheduler {
30 class RendererScheduler; 34 class RendererScheduler;
31 } 35 }
32 class WebInputElement; 36 class WebInputElement;
33 class WebWidget; 37 class WebWidget;
34 } 38 }
35 39
36 namespace gfx { 40 namespace gfx {
37 class Rect; 41 class Rect;
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 RendererBlinkPlatformImplTestOverride blink_platform_impl_; 198 RendererBlinkPlatformImplTestOverride blink_platform_impl_;
195 std::unique_ptr<ContentClient> content_client_; 199 std::unique_ptr<ContentClient> content_client_;
196 std::unique_ptr<ContentBrowserClient> content_browser_client_; 200 std::unique_ptr<ContentBrowserClient> content_browser_client_;
197 std::unique_ptr<ContentRendererClient> content_renderer_client_; 201 std::unique_ptr<ContentRendererClient> content_renderer_client_;
198 std::unique_ptr<MockRenderThread> render_thread_; 202 std::unique_ptr<MockRenderThread> render_thread_;
199 203
200 // Used to setup the process so renderers can run. 204 // Used to setup the process so renderers can run.
201 std::unique_ptr<RendererMainPlatformDelegate> platform_; 205 std::unique_ptr<RendererMainPlatformDelegate> platform_;
202 std::unique_ptr<MainFunctionParams> params_; 206 std::unique_ptr<MainFunctionParams> params_;
203 std::unique_ptr<base::CommandLine> command_line_; 207 std::unique_ptr<base::CommandLine> command_line_;
208 std::unique_ptr<base::FieldTrialList> field_trial_list_;
204 209
205 // For Mojo. 210 // For Mojo.
206 std::unique_ptr<base::TestIOThread> test_io_thread_; 211 std::unique_ptr<base::TestIOThread> test_io_thread_;
207 std::unique_ptr<mojo::edk::test::ScopedIPCSupport> ipc_support_; 212 std::unique_ptr<mojo::edk::test::ScopedIPCSupport> ipc_support_;
208 213
209 #if defined(OS_MACOSX) 214 #if defined(OS_MACOSX)
210 std::unique_ptr<base::mac::ScopedNSAutoreleasePool> autorelease_pool_; 215 std::unique_ptr<base::mac::ScopedNSAutoreleasePool> autorelease_pool_;
211 #endif 216 #endif
212 217
213 private: 218 private:
214 void GoToOffset(int offset, const GURL& url, const PageState& state); 219 void GoToOffset(int offset, const GURL& url, const PageState& state);
215 }; 220 };
216 221
217 } // namespace content 222 } // namespace content
218 223
219 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ 224 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_
OLDNEW
« no previous file with comments | « chrome/common/variations/child_process_field_trial_syncer_unittest.cc ('k') | content/public/test/render_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698