summaryrefslogtreecommitdiffstats
path: root/ash/test/launcher_test_api.h
blob: d83833922e9236145e6aab9667c987ec3dfcc458 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// 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.

#ifndef ASH_TEST_LAUNCHER_TEST_API_H_
#define ASH_TEST_LAUNCHER_TEST_API_H_

#include "base/basictypes.h"

namespace ash {

class Launcher;
class ShelfDelegate;

namespace internal {
class ShelfView;
}

namespace test {

// Use the api in this class to access private members of Launcher.
class LauncherTestAPI {
 public:
  explicit LauncherTestAPI(Launcher* launcher);

  ~LauncherTestAPI();

  // An accessor for |shelf_view|.
  internal::ShelfView* shelf_view();

  // Set ShelfDelegate.
  void SetShelfDelegate(ShelfDelegate* delegate);

 private:
  Launcher* launcher_;

  DISALLOW_COPY_AND_ASSIGN(LauncherTestAPI);
};

}  // namespace test
}  // namespace ash

#endif  // ASH_TEST_LAUNCHER_TEST_API_H_