blob: 740164d69213e396749e0905e4b6dcc80283e072 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#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();
}
} // namespace test
} // namespace ash
|