OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |