Apollo  6.0
Open source self driving car software
third_party_perception_test_base.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright 2017 The Apollo Authors. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *****************************************************************************/
16 
17 #pragma once
18 
19 #include "gtest/gtest.h"
20 
22 
23 #define RUN_GOLDEN_TEST \
24  { \
25  const ::testing::TestInfo *const test_info = \
26  ::testing::UnitTest::GetInstance()->current_test_info(); \
27  bool run_third_party_perception_success = \
28  test_third_party_perception(test_info->name(), 0); \
29  EXPECT_TRUE(run_third_party_perception_success); \
30  }
31 
32 DECLARE_string(test_localization_file);
33 
34 DECLARE_string(test_chassis_file);
35 DECLARE_string(test_data_dir);
36 DECLARE_string(test_monitor_file);
37 
42 namespace apollo {
43 namespace third_party_perception {
44 
45 class ThirdPartyPerceptionTestBase : public ::testing::Test {
46  public:
47  virtual void SetUp();
48 
49  private:
50  static uint32_t s_seq_num_;
51 };
52 
53 } // namespace third_party_perception
54 } // namespace apollo
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
Definition: third_party_perception_test_base.h:45
DECLARE_string(test_localization_file)