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

Side by Side Diff: content/renderer/pepper/ppapi_plugin_instance_unittest.cc

Issue 20165002: Move webkit/plugins/ppapi to content/renderer/pepper. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
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 "webkit/plugins/ppapi/ppapi_plugin_instance_impl.h" 5 #include "content/renderer/pepper/ppapi_plugin_instance_impl.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "content/renderer/pepper/plugin_delegate.h"
10 #include "content/renderer/pepper/ppapi_unittest.h"
11 #include "content/renderer/pepper/ppb_image_data_impl.h"
9 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
10 #include "ui/gfx/rect.h" 13 #include "ui/gfx/rect.h"
11 #include "ui/gfx/safe_integer_conversions.h" 14 #include "ui/gfx/safe_integer_conversions.h"
12 #include "webkit/plugins/ppapi/plugin_delegate.h"
13 #include "webkit/plugins/ppapi/ppapi_unittest.h"
14 #include "webkit/plugins/ppapi/ppb_image_data_impl.h"
15 15
16 namespace webkit { 16 namespace webkit {
17 namespace ppapi { 17 namespace ppapi {
18 18
19 namespace { 19 namespace {
20 20
21 // A mock graphics object to bind. We only have to implement enough so that 21 // A mock graphics object to bind. We only have to implement enough so that
22 // GetBitmapForOptimizedPluginPaint runs. 22 // GetBitmapForOptimizedPluginPaint runs.
23 // 23 //
24 // If this is eventually all moved to content, we can simplify this. The 24 // If this is eventually all moved to content, we can simplify this. The
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 EXPECT_EQ(gfx::ToFlooredInt(size.height / scale), location.height()); 118 EXPECT_EQ(gfx::ToFlooredInt(size.height / scale), location.height());
119 EXPECT_EQ(0, clip.x()); 119 EXPECT_EQ(0, clip.x());
120 EXPECT_EQ(0, clip.y()); 120 EXPECT_EQ(0, clip.y());
121 EXPECT_EQ(size.width, clip.width()); 121 EXPECT_EQ(size.width, clip.width());
122 EXPECT_EQ(size.height, clip.height()); 122 EXPECT_EQ(size.height, clip.height());
123 EXPECT_EQ(scale, bitmap_scale); 123 EXPECT_EQ(scale, bitmap_scale);
124 } 124 }
125 125
126 } // namespace ppapi 126 } // namespace ppapi
127 } // namespace webkit 127 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698