mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-30 08:55:39 +00:00
This CL updates the test files to have explicit added for single parameter constructors and removed from zero parameter constructors. Bug: dawn:1339 Change-Id: I21339148bba5e7e89debc38ec426ba15e0d734e2 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/87021 Auto-Submit: Dan Sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
42 lines
1.5 KiB
C++
42 lines
1.5 KiB
C++
// Copyright 2021 The Dawn Authors
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
#ifndef SRC_DAWN_TESTS_UNITTESTS_NATIVE_MOCKS_RENDERPIPELINEMOCK_H_
|
|
#define SRC_DAWN_TESTS_UNITTESTS_NATIVE_MOCKS_RENDERPIPELINEMOCK_H_
|
|
|
|
#include "dawn/native/Device.h"
|
|
#include "dawn/native/RenderPipeline.h"
|
|
|
|
#include <gmock/gmock.h>
|
|
|
|
namespace dawn::native {
|
|
|
|
class RenderPipelineMock : public RenderPipelineBase {
|
|
public:
|
|
explicit RenderPipelineMock(DeviceBase* device) : RenderPipelineBase(device) {
|
|
ON_CALL(*this, DestroyImpl).WillByDefault([this]() {
|
|
this->RenderPipelineBase::DestroyImpl();
|
|
});
|
|
}
|
|
~RenderPipelineMock() override = default;
|
|
|
|
MOCK_METHOD(MaybeError, Initialize, (), (override));
|
|
MOCK_METHOD(size_t, ComputeContentHash, (), (override));
|
|
MOCK_METHOD(void, DestroyImpl, (), (override));
|
|
};
|
|
|
|
} // namespace dawn::native
|
|
|
|
#endif // SRC_DAWN_TESTS_UNITTESTS_NATIVE_MOCKS_RENDERPIPELINEMOCK_H_
|