1 /* 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 3 * 4 * Use of this source code is governed by a BSD-style license 5 * that can be found in the LICENSE file in the root of the source 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11 #ifndef SRC_VIDEO_ENGINE_MAIN_TEST_AUTOTEST_AUTOMATED_TWO_WINDOWS_FIXTURE_H_ 12 #define SRC_VIDEO_ENGINE_MAIN_TEST_AUTOTEST_AUTOMATED_TWO_WINDOWS_FIXTURE_H_ 13 14 #include "testing/gtest/include/gtest/gtest.h" 15 16 class ViEWindowCreator; 17 class ViEAutoTest; 18 19 // Meant to be inherited by all standard test who require two windows. 20 class TwoWindowsFixture : public testing::Test { 21 public: 22 // Launches two windows in a platform-dependent manner and stores the handles 23 // in the window_1_ and window_2_ fields. 24 static void SetUpTestCase(); 25 26 // Releases anything allocated by SetupTestCase. 27 static void TearDownTestCase(); 28 29 protected: 30 static void* window_1_; 31 static void* window_2_; 32 static ViEWindowCreator* window_creator_; 33 }; 34 35 #endif // SRC_VIDEO_ENGINE_MAIN_TEST_AUTOTEST_AUTOMATED_TWO_WINDOWS_FIXTURE_H_ 36