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

Side by Side Diff: webkit/compositor_bindings/TextureCopierTest.cpp

Issue 10914268: Change cc files from namespace WebCore to cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 3 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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 "config.h" 5 #include "config.h"
6 6
7 #include "TextureCopier.h" 7 #include "TextureCopier.h"
8 8
9 #include "FakeWebGraphicsContext3D.h" 9 #include "FakeWebGraphicsContext3D.h"
10 #include "GraphicsContext3D.h" 10 #include "GraphicsContext3D.h"
11 #include <gmock/gmock.h> 11 #include <gmock/gmock.h>
12 #include <gtest/gtest.h> 12 #include <gtest/gtest.h>
13 #include <wtf/RefPtr.h> 13 #include <wtf/RefPtr.h>
14 14
15 using namespace WebCore; 15 using namespace cc;
16 using namespace WebKit; 16 using namespace WebKit;
17 using testing::InSequence; 17 using testing::InSequence;
18 using testing::Test; 18 using testing::Test;
19 using testing::_; 19 using testing::_;
20 20
21 class MockContext : public FakeWebGraphicsContext3D { 21 class MockContext : public FakeWebGraphicsContext3D {
22 public: 22 public:
23 MOCK_METHOD2(bindFramebuffer, void(WGC3Denum, WebGLId)); 23 MOCK_METHOD2(bindFramebuffer, void(WGC3Denum, WebGLId));
24 MOCK_METHOD3(texParameteri, void(WGC3Denum target, WGC3Denum pname, WGC3Dint param)); 24 MOCK_METHOD3(texParameteri, void(WGC3Denum target, WGC3Denum pname, WGC3Dint param));
25 25
(...skipping 24 matching lines...) Expand all
50 EXPECT_CALL(*mockContext, bindFramebuffer(GraphicsContext3D::FRAMEBUFFER , 0)); 50 EXPECT_CALL(*mockContext, bindFramebuffer(GraphicsContext3D::FRAMEBUFFER , 0));
51 } 51 }
52 52
53 int sourceTextureId = 1; 53 int sourceTextureId = 1;
54 int destTextureId = 2; 54 int destTextureId = 2;
55 IntSize size(256, 128); 55 IntSize size(256, 128);
56 OwnPtr<AcceleratedTextureCopier> copier(AcceleratedTextureCopier::create(moc kContext.get(), false)); 56 OwnPtr<AcceleratedTextureCopier> copier(AcceleratedTextureCopier::create(moc kContext.get(), false));
57 TextureCopier::Parameters copy = { sourceTextureId, destTextureId, size }; 57 TextureCopier::Parameters copy = { sourceTextureId, destTextureId, size };
58 copier->copyTexture(copy); 58 copier->copyTexture(copy);
59 } 59 }
OLDNEW
« no previous file with comments | « webkit/compositor_bindings/LayerChromiumTest.cpp ('k') | webkit/compositor_bindings/TextureLayerChromiumTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698