| 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 "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "ThrottledTextureUploader.h" | 7 #include "ThrottledTextureUploader.h" |
| 8 | 8 |
| 9 #include "Extensions3DChromium.h" | 9 #include "Extensions3DChromium.h" |
| 10 #include "FakeWebGraphicsContext3D.h" | 10 #include "FakeWebGraphicsContext3D.h" |
| 11 #include "GraphicsContext3D.h" | 11 #include "GraphicsContext3D.h" |
| 12 | 12 |
| 13 #include <gmock/gmock.h> | 13 #include "testing/gmock/include/gmock/gmock.h" |
| 14 #include <gtest/gtest.h> | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 #include <wtf/RefPtr.h> | 15 #include <wtf/RefPtr.h> |
| 16 | 16 |
| 17 using namespace cc; | 17 using namespace cc; |
| 18 using namespace WebKit; | 18 using namespace WebKit; |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 class FakeWebGraphicsContext3DWithQueryTesting : public FakeWebGraphicsContext3D
{ | 22 class FakeWebGraphicsContext3DWithQueryTesting : public FakeWebGraphicsContext3D
{ |
| 23 public: | 23 public: |
| 24 FakeWebGraphicsContext3DWithQueryTesting() : m_resultAvailable(0) | 24 FakeWebGraphicsContext3DWithQueryTesting() : m_resultAvailable(0) |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 uploader->endUploads(); | 80 uploader->endUploads(); |
| 81 EXPECT_EQ(0, uploader->numPendingUploads()); | 81 EXPECT_EQ(0, uploader->numPendingUploads()); |
| 82 uploader->beginUploads(); | 82 uploader->beginUploads(); |
| 83 uploader->uploadTexture(NULL, upload); | 83 uploader->uploadTexture(NULL, upload); |
| 84 uploader->uploadTexture(NULL, upload); | 84 uploader->uploadTexture(NULL, upload); |
| 85 uploader->endUploads(); | 85 uploader->endUploads(); |
| 86 EXPECT_EQ(0, uploader->numPendingUploads()); | 86 EXPECT_EQ(0, uploader->numPendingUploads()); |
| 87 } | 87 } |
| 88 | 88 |
| 89 } // namespace | 89 } // namespace |
| OLD | NEW |