-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the fake platform's implementation of ConfigurationManagerImpl. (#…
…11638) * Move the global methods to the implementation. * Add ConfigurationManagerImpl::GetDefaultInstance, which is required by tests.
- Loading branch information
1 parent
94938cb
commit 2099986
Showing
3 changed files
with
34 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* | ||
* Copyright (c) 2021 Project CHIP Authors | ||
* All rights reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* limitations under the License. | ||
*/ | ||
|
||
#include <platform/ConfigurationManager.h> | ||
|
||
namespace chip { | ||
namespace DeviceLayer { | ||
|
||
ConfigurationManagerImpl & ConfigurationManagerImpl::GetDefaultInstance() | ||
{ | ||
static ConfigurationManagerImpl sInstance; | ||
return sInstance; | ||
} | ||
|
||
ConfigurationManager & ConfigurationMgr() | ||
{ | ||
return ConfigurationManagerImpl::GetDefaultInstance(); | ||
} | ||
|
||
void SetConfigurationMgr(ConfigurationManager * configurationManager) {} | ||
|
||
} // namespace DeviceLayer | ||
} // namespace chip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters