This source file includes following definitions.
- RemoveAllShelfItemDelegateForTest
#include "ash/test/shelf_item_delegate_manager_test_api.h"
#include "ash/shelf/shelf_item_delegate.h"
#include "ash/shelf/shelf_item_delegate_manager.h"
#include "base/stl_util.h"
namespace ash {
namespace test {
ShelfItemDelegateManagerTestAPI::ShelfItemDelegateManagerTestAPI(
ShelfItemDelegateManager* manager)
: manager_(manager) {
DCHECK(manager_);
}
void ShelfItemDelegateManagerTestAPI::RemoveAllShelfItemDelegateForTest() {
STLDeleteContainerPairSecondPointers(
manager_->id_to_item_delegate_map_.begin(),
manager_->id_to_item_delegate_map_.end());
manager_->id_to_item_delegate_map_.clear();
}
}
}