mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 08:10:06 +00:00 
			
		
		
		
	Add warnings provider to settings
This commit is contained in:
		
							parent
							
								
									ea19de3e5f
								
							
						
					
					
						commit
						5ee2d10a1b
					
				
					 8 changed files with 234 additions and 144 deletions
				
			
		|  | @ -8,12 +8,18 @@ namespace network | |||
| { | ||||
| 
 | ||||
| static const std::string& kDefaultUrl {"https://warnings.allisonhouse.com"}; | ||||
| static const std::string& kAlternateUrl {"http://warnings.cod.edu"}; | ||||
| static const std::string& kAlternateUrl {"https://warnings.cod.edu"}; | ||||
| 
 | ||||
| TEST(DirList, GetDefaultUrl) | ||||
| { | ||||
|    auto records = DirList(kDefaultUrl); | ||||
| 
 | ||||
|    // No records, skip test
 | ||||
|    if (records.size() == 0) | ||||
|    { | ||||
|       GTEST_SKIP(); | ||||
|    } | ||||
| 
 | ||||
|    EXPECT_GT(records.size(), 0); | ||||
| } | ||||
| 
 | ||||
|  | @ -21,6 +27,12 @@ TEST(DirList, GetAlternateUrl) | |||
| { | ||||
|    auto records = DirList(kAlternateUrl); | ||||
| 
 | ||||
|    // No records, skip test
 | ||||
|    if (records.size() == 0) | ||||
|    { | ||||
|       GTEST_SKIP(); | ||||
|    } | ||||
| 
 | ||||
|    EXPECT_GT(records.size(), 0); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat