Specify SetUpTestSuite is required to be public.
PiperOrigin-RevId: 555578256 Change-Id: I9366fc99ae953c29e468fcddb4be203c9c05661b
This commit is contained in:
		
				
					committed by
					
						
						Copybara-Service
					
				
			
			
				
	
			
			
			
						parent
						
							89b25572db
						
					
				
				
					commit
					7e33b6a1c4
				
			@@ -899,10 +899,10 @@ also supports per-test-suite set-up/tear-down. To use it:
 | 
				
			|||||||
    variables to hold the shared resources.
 | 
					    variables to hold the shared resources.
 | 
				
			||||||
2.  Outside your test fixture class (typically just below it), define those
 | 
					2.  Outside your test fixture class (typically just below it), define those
 | 
				
			||||||
    member variables, optionally giving them initial values.
 | 
					    member variables, optionally giving them initial values.
 | 
				
			||||||
3.  In the same test fixture class, define a `static void SetUpTestSuite()`
 | 
					3.  In the same test fixture class, define a public member function `static void
 | 
				
			||||||
    function (remember not to spell it as **`SetupTestSuite`** with a small
 | 
					    SetUpTestSuite()` (remember not to spell it as **`SetupTestSuite`** with a
 | 
				
			||||||
    `u`!) to set up the shared resources and a `static void TearDownTestSuite()`
 | 
					    small `u`!) to set up the shared resources and a `static void
 | 
				
			||||||
    function to tear them down.
 | 
					    TearDownTestSuite()` function to tear them down.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
That's it! GoogleTest automatically calls `SetUpTestSuite()` before running the
 | 
					That's it! GoogleTest automatically calls `SetUpTestSuite()` before running the
 | 
				
			||||||
*first test* in the `FooTest` test suite (i.e. before creating the first
 | 
					*first test* in the `FooTest` test suite (i.e. before creating the first
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user