Roll tools/swarming_client/ to b61a1802f5ef4bb8c7b81060cc80add47e6cf302.
[chromium-blink-merge.git] / ash / test / shelf_test_api.cc
blobd050f73769c5b428d0a4012b3f3ff123f1c8fa10
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ash/test/shelf_test_api.h"
7 #include "ash/shelf/shelf.h"
9 namespace ash {
10 namespace test {
12 ShelfTestAPI::ShelfTestAPI(Shelf* shelf)
13 : shelf_(shelf) {
16 ShelfTestAPI::~ShelfTestAPI() {
19 ShelfView* ShelfTestAPI::shelf_view() { return shelf_->shelf_view_; }
21 void ShelfTestAPI::SetShelfDelegate(ShelfDelegate* delegate) {
22 shelf_->delegate_ = delegate;
25 } // namespace test
26 } // namespace ash