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#include "webrtc/video_engine/test/auto_test/automated/two_windows_fixture.h"
12
13#include "webrtc/video_engine/test/auto_test/interface/vie_autotest_window_manager_interface.h"
14#include "webrtc/video_engine/test/auto_test/interface/vie_window_creator.h"
15
16void TwoWindowsFixture::SetUpTestCase() {
17  window_creator_ = new ViEWindowCreator();
18
19  ViEAutoTestWindowManagerInterface* window_manager =
20    window_creator_->CreateTwoWindows();
21
22  window_1_ = window_manager->GetWindow1();
23  window_2_ = window_manager->GetWindow2();
24}
25
26void TwoWindowsFixture::TearDownTestCase() {
27  window_creator_->TerminateWindows();
28  delete window_creator_;
29}
30
31ViEWindowCreator* TwoWindowsFixture::window_creator_ = NULL;
32void* TwoWindowsFixture::window_1_ = NULL;
33void* TwoWindowsFixture::window_2_ = NULL;
34