• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *  Copyright (c) 2011 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 TEST_TEST_SUITE_H_
12 #define TEST_TEST_SUITE_H_
13 
14 // Derived from Chromium's src/base/test/test_suite.h.
15 
16 // Defines a basic test suite framework for running gtest based tests.  You can
17 // instantiate this class in your main function and call its Run method to run
18 // any gtest based tests that are linked into your executable.
19 
20 #include "src/system_wrappers/interface/constructor_magic.h"
21 
22 namespace webrtc {
23 namespace test {
24 class TestSuite {
25  public:
26   TestSuite(int argc, char** argv);
27   virtual ~TestSuite();
28 
29   int Run();
30 
31  protected:
32   // Override these for custom initialization and shutdown handling.  Use these
33   // instead of putting complex code in your constructor/destructor.
34   virtual void Initialize();
35   virtual void Shutdown();
36 
37   DISALLOW_COPY_AND_ASSIGN(TestSuite);
38 };
39 }  // namespace test
40 }  // namespace webrtc
41 
42 #endif  // TEST_TEST_SUITE_H_
43