c0bd9f9fe5
Current strategy: everything from the top Things to look at first are the manual changes: - added tools/rewrite_includes.py - removed -Idirectives from BUILD.gn - various compile.sh simplifications - tweak tools/embed_resources.py - update gn/find_headers.py to write paths from the top - update gn/gn_to_bp.py SkUserConfig.h layout so that #include "include/config/SkUserConfig.h" always gets the header we want. No-Presubmit: true Change-Id: I73a4b181654e0e38d229bc456c0d0854bae3363e Reviewed-on: https://skia-review.googlesource.com/c/skia/+/209706 Commit-Queue: Mike Klein <mtklein@google.com> Reviewed-by: Hal Canary <halcanary@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Reviewed-by: Florin Malita <fmalita@chromium.org>
43 lines
1.5 KiB
C++
43 lines
1.5 KiB
C++
/*
|
|
* Copyright 2015 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#include "tests/Test.h"
|
|
|
|
#include "include/gpu/GrContext.h"
|
|
#include "tools/gpu/gl/GLTestContext.h"
|
|
|
|
// This is an example of a normal test.
|
|
DEF_TEST(TestNormal, reporter) {
|
|
REPORTER_ASSERT(reporter, reporter);
|
|
}
|
|
|
|
// This is an example of a GPU test that uses GrContextOptions to do the test.
|
|
DEF_GPUTEST(TestGpuFactory, reporter, factory) {
|
|
REPORTER_ASSERT(reporter, reporter);
|
|
}
|
|
|
|
// This is an example of a GPU test that tests a property that should work for all GPU contexts.
|
|
// Note: Some of the contexts might not produce a rendering output.
|
|
DEF_GPUTEST_FOR_ALL_CONTEXTS(TestGpuAllContexts, reporter, ctxInfo) {
|
|
REPORTER_ASSERT(reporter, reporter);
|
|
REPORTER_ASSERT(reporter, ctxInfo.grContext());
|
|
}
|
|
|
|
// This is an example of a GPU test that tests a property that should work for all GPU contexts that
|
|
// produce a rendering output.
|
|
DEF_GPUTEST_FOR_RENDERING_CONTEXTS(TestGpuRenderingContexts, reporter, ctxInfo) {
|
|
REPORTER_ASSERT(reporter, reporter);
|
|
REPORTER_ASSERT(reporter, ctxInfo.grContext());
|
|
}
|
|
|
|
// This is an example of a GPU test that tests a property that uses the mock context. It should
|
|
// be used if the test tests some behavior that is mocked with the mock context.
|
|
DEF_GPUTEST_FOR_MOCK_CONTEXT(TestMockContext, reporter, ctxInfo) {
|
|
REPORTER_ASSERT(reporter, reporter);
|
|
REPORTER_ASSERT(reporter, ctxInfo.grContext());
|
|
}
|