| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 #include "public/platform/WebExternalBitmap.h" | 34 #include "public/platform/WebExternalBitmap.h" |
| 35 #include "public/platform/WebGraphicsContext3DProvider.h" | 35 #include "public/platform/WebGraphicsContext3DProvider.h" |
| 36 #include "public/platform/WebThread.h" | 36 #include "public/platform/WebThread.h" |
| 37 #include "third_party/skia/include/core/SkDevice.h" | 37 #include "third_party/skia/include/core/SkDevice.h" |
| 38 #include "wtf/RefPtr.h" | 38 #include "wtf/RefPtr.h" |
| 39 | 39 |
| 40 #include <gmock/gmock.h> | 40 #include <gmock/gmock.h> |
| 41 #include <gtest/gtest.h> | 41 #include <gtest/gtest.h> |
| 42 | 42 |
| 43 using namespace blink; | 43 using namespace blink; |
| 44 using namespace blink; | |
| 45 using testing::InSequence; | 44 using testing::InSequence; |
| 46 using testing::Return; | 45 using testing::Return; |
| 47 using testing::Test; | 46 using testing::Test; |
| 48 | 47 |
| 49 namespace { | 48 namespace { |
| 50 | 49 |
| 51 class MockCanvasContext : public MockWebGraphicsContext3D { | 50 class MockCanvasContext : public MockWebGraphicsContext3D { |
| 52 public: | 51 public: |
| 53 MOCK_METHOD0(flush, void(void)); | 52 MOCK_METHOD0(flush, void(void)); |
| 54 MOCK_METHOD0(createTexture, unsigned(void)); | 53 MOCK_METHOD0(createTexture, unsigned(void)); |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 { | 156 { |
| 158 fullLifecycleTest(); | 157 fullLifecycleTest(); |
| 159 } | 158 } |
| 160 | 159 |
| 161 TEST_F(Canvas2DLayerBridgeTest, prepareMailboxWithBitmapTest) | 160 TEST_F(Canvas2DLayerBridgeTest, prepareMailboxWithBitmapTest) |
| 162 { | 161 { |
| 163 prepareMailboxWithBitmapTest(); | 162 prepareMailboxWithBitmapTest(); |
| 164 } | 163 } |
| 165 | 164 |
| 166 } // namespace | 165 } // namespace |
| OLD | NEW |