diff options
author | sadrul <sadrul@chromium.org> | 2015-07-20 15:34:26 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-20 22:35:29 +0000 |
commit | ba162cdaf95c99b67da214be4cc8117db9ad2a5f (patch) | |
tree | 814ef1c3c6d82f7193494ffece674371b68e8bfc /ui/gl/test/gl_surface_test_support.h | |
parent | c2e5ab72a5cc817cdb86189670c9f535ed67bd4e (diff) | |
download | chromium_src-ba162cdaf95c99b67da214be4cc8117db9ad2a5f.zip chromium_src-ba162cdaf95c99b67da214be4cc8117db9ad2a5f.tar.gz chromium_src-ba162cdaf95c99b67da214be4cc8117db9ad2a5f.tar.bz2 |
gl/test: Move some initialization code used in tests to a separate component.
Moving test-code to a separete component, so that adding more test-only
dependencies does not affect non-test code.
BUG=none
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
TBR=jam@ for non-ui/gl/ changes, since trivial #include/gyp-gn updates
Review URL: https://codereview.chromium.org/1238443004
Cr-Commit-Position: refs/heads/master@{#339539}
Diffstat (limited to 'ui/gl/test/gl_surface_test_support.h')
-rw-r--r-- | ui/gl/test/gl_surface_test_support.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ui/gl/test/gl_surface_test_support.h b/ui/gl/test/gl_surface_test_support.h new file mode 100644 index 0000000..6e53c69 --- /dev/null +++ b/ui/gl/test/gl_surface_test_support.h @@ -0,0 +1,21 @@ +// Copyright 2015 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef UI_GL_TEST_GL_SURFACE_TEST_SUPPORT_H_ +#define UI_GL_TEST_GL_SURFACE_TEST_SUPPORT_H_ + +namespace gfx { + +class GLContext; + +class GLSurfaceTestSupport { + public: + static void InitializeOneOff(); + static void InitializeOneOffWithMockBindings(); + static void InitializeDynamicMockBindings(GLContext* context); +}; + +} // namespace gfx + +#endif // UI_GL_TEST_GL_SURFACE_TEST_SUPPORT_H_ |