summaryrefslogtreecommitdiffstats
path: root/ui/views/test/menu_runner_test_api.h
blob: a9e2b8e8fb94b22953f9534a3aa32cd130092797 (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
// 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 UI_VIEWS_TEST_MENU_RUNNER_TEST_API_H_
#define UI_VIEWS_TEST_MENU_RUNNER_TEST_API_H_

#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"

namespace views {

class MenuRunner;
class MenuRunnerHandler;

namespace test {

// A wrapper of MenuRunner to use testing methods of MenuRunner.
class MenuRunnerTestAPI {
 public:
  explicit MenuRunnerTestAPI(MenuRunner* menu_runner);
  ~MenuRunnerTestAPI();

  // Sets the menu runner handler.
  void SetMenuRunnerHandler(scoped_ptr<MenuRunnerHandler> menu_runner_handler);

 private:
  MenuRunner* menu_runner_;

  DISALLOW_COPY_AND_ASSIGN(MenuRunnerTestAPI);
};

}  // namespace test

}  // namespace views

#endif  // UI_VIEWS_TEST_MENU_RUNNER_TEST_API_H_