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

Side by Side Diff: components/test_runner/test_plugin.cc

Issue 1167703002: Move test runner to a component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 years, 6 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
« no previous file with comments | « components/test_runner/test_plugin.h ('k') | components/test_runner/test_preferences.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/shell/renderer/test_runner/test_plugin.h" 5 #include "components/test_runner/test_plugin.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
11 #include "base/strings/stringprintf.h" 11 #include "base/strings/stringprintf.h"
12 #include "cc/resources/shared_bitmap_manager.h" 12 #include "cc/resources/shared_bitmap_manager.h"
13 #include "content/shell/renderer/test_runner/web_test_delegate.h" 13 #include "components/test_runner/web_test_delegate.h"
14 #include "third_party/skia/include/core/SkBitmap.h"
15 #include "third_party/skia/include/core/SkCanvas.h"
16 #include "third_party/skia/include/core/SkColor.h"
17 #include "third_party/WebKit/public/platform/Platform.h" 14 #include "third_party/WebKit/public/platform/Platform.h"
18 #include "third_party/WebKit/public/platform/WebCompositorSupport.h" 15 #include "third_party/WebKit/public/platform/WebCompositorSupport.h"
19 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" 16 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
20 #include "third_party/WebKit/public/platform/WebThread.h" 17 #include "third_party/WebKit/public/platform/WebThread.h"
21 #include "third_party/WebKit/public/platform/WebTraceLocation.h" 18 #include "third_party/WebKit/public/platform/WebTraceLocation.h"
22 #include "third_party/WebKit/public/web/WebFrame.h" 19 #include "third_party/WebKit/public/web/WebFrame.h"
23 #include "third_party/WebKit/public/web/WebInputEvent.h" 20 #include "third_party/WebKit/public/web/WebInputEvent.h"
24 #include "third_party/WebKit/public/web/WebKit.h" 21 #include "third_party/WebKit/public/web/WebKit.h"
25 #include "third_party/WebKit/public/web/WebPluginParams.h" 22 #include "third_party/WebKit/public/web/WebPluginParams.h"
26 #include "third_party/WebKit/public/web/WebTouchPoint.h" 23 #include "third_party/WebKit/public/web/WebTouchPoint.h"
27 #include "third_party/WebKit/public/web/WebUserGestureIndicator.h" 24 #include "third_party/WebKit/public/web/WebUserGestureIndicator.h"
25 #include "third_party/skia/include/core/SkBitmap.h"
26 #include "third_party/skia/include/core/SkCanvas.h"
27 #include "third_party/skia/include/core/SkColor.h"
28 28
29 namespace content { 29 namespace content {
30 30
31 namespace { 31 namespace {
32 32
33 // GLenum values copied from gl2.h. 33 // GLenum values copied from gl2.h.
34 #define GL_FALSE 0 34 #define GL_FALSE 0
35 #define GL_TRUE 1 35 #define GL_TRUE 1
36 #define GL_ONE 1 36 #define GL_ONE 1
37 #define GL_TRIANGLES 0x0004 37 #define GL_TRIANGLES 0x0004
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 return kPluginPersistsMimeType; 773 return kPluginPersistsMimeType;
774 } 774 }
775 775
776 bool TestPlugin::IsSupportedMimeType(const blink::WebString& mime_type) { 776 bool TestPlugin::IsSupportedMimeType(const blink::WebString& mime_type) {
777 return mime_type == TestPlugin::MimeType() || 777 return mime_type == TestPlugin::MimeType() ||
778 mime_type == PluginPersistsMimeType() || 778 mime_type == PluginPersistsMimeType() ||
779 mime_type == CanCreateWithoutRendererMimeType(); 779 mime_type == CanCreateWithoutRendererMimeType();
780 } 780 }
781 781
782 } // namespace content 782 } // namespace content
OLDNEW
« no previous file with comments | « components/test_runner/test_plugin.h ('k') | components/test_runner/test_preferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698