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

Side by Side Diff: cc/resources/resource_update_controller_unittest.cc

Issue 126973002: Decouple cc::FakeWebGraphicsContext3D from blink::WGC3D (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
« no previous file with comments | « cc/resources/raster_worker_pool.cc ('k') | cc/resources/texture_mailbox_deleter_unittest.cc » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "cc/resources/resource_update_controller.h" 5 #include "cc/resources/resource_update_controller.h"
6 6
7 #include "base/test/test_simple_task_runner.h" 7 #include "base/test/test_simple_task_runner.h"
8 #include "cc/resources/prioritized_resource_manager.h" 8 #include "cc/resources/prioritized_resource_manager.h"
9 #include "cc/test/fake_output_surface.h" 9 #include "cc/test/fake_output_surface.h"
10 #include "cc/test/fake_output_surface_client.h" 10 #include "cc/test/fake_output_surface_client.h"
(...skipping 24 matching lines...) Expand all
35 virtual void shallowFlushCHROMIUM() OVERRIDE; 35 virtual void shallowFlushCHROMIUM() OVERRIDE;
36 virtual void texSubImage2D(GLenum target, 36 virtual void texSubImage2D(GLenum target,
37 GLint level, 37 GLint level,
38 GLint xoffset, 38 GLint xoffset,
39 GLint yoffset, 39 GLint yoffset,
40 GLsizei width, 40 GLsizei width,
41 GLsizei height, 41 GLsizei height,
42 GLenum format, 42 GLenum format,
43 GLenum type, 43 GLenum type,
44 const void* pixels) OVERRIDE; 44 const void* pixels) OVERRIDE;
45 virtual GrGLInterface* createGrGLInterface() OVERRIDE { return NULL; }
46 45
47 virtual void getQueryObjectuivEXT(GLuint id, GLenum pname, GLuint* value); 46 virtual void getQueryObjectuivEXT(GLuint id, GLenum pname, GLuint* value)
47 OVERRIDE;
48 48
49 private: 49 private:
50 ResourceUpdateControllerTest* test_; 50 ResourceUpdateControllerTest* test_;
51 }; 51 };
52 52
53 class ResourceUpdateControllerTest : public Test { 53 class ResourceUpdateControllerTest : public Test {
54 public: 54 public:
55 ResourceUpdateControllerTest() 55 ResourceUpdateControllerTest()
56 : proxy_(), 56 : proxy_(),
57 queue_(make_scoped_ptr(new ResourceUpdateQueue)), 57 queue_(make_scoped_ptr(new ResourceUpdateQueue)),
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 RunPendingTask(task_runner.get(), controller.get()); 500 RunPendingTask(task_runner.get(), controller.get());
501 } 501 }
502 502
503 EXPECT_FALSE(task_runner->HasPendingTask()); 503 EXPECT_FALSE(task_runner->HasPendingTask());
504 EXPECT_TRUE(client.ReadyToFinalizeCalled()); 504 EXPECT_TRUE(client.ReadyToFinalizeCalled());
505 EXPECT_EQ(2, num_total_uploads_); 505 EXPECT_EQ(2, num_total_uploads_);
506 } 506 }
507 507
508 } // namespace 508 } // namespace
509 } // namespace cc 509 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/raster_worker_pool.cc ('k') | cc/resources/texture_mailbox_deleter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698