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 <gmock/gmock.h> |
14 #include <gtest/gtest.h> | 14 #include <gtest/gtest.h> |
15 #include <wtf/RefPtr.h> | 15 #include <wtf/RefPtr.h> |
16 | 16 |
17 using namespace WebCore; | 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) |
25 { | 25 { |
26 } | 26 } |
27 | 27 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 uploader->endUploads(); | 63 uploader->endUploads(); |
64 EXPECT_FALSE(uploader->isBusy()); | 64 EXPECT_FALSE(uploader->isBusy()); |
65 uploader->beginUploads(); | 65 uploader->beginUploads(); |
66 uploader->endUploads(); | 66 uploader->endUploads(); |
67 EXPECT_FALSE(uploader->isBusy()); | 67 EXPECT_FALSE(uploader->isBusy()); |
68 uploader->beginUploads(); | 68 uploader->beginUploads(); |
69 uploader->endUploads(); | 69 uploader->endUploads(); |
70 } | 70 } |
71 | 71 |
72 } // namespace | 72 } // namespace |
OLD | NEW |