blob: da72dcda000b396c82b96066b5a5d57aa2407f22 (
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
|
// Copyright 2016 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_MUS_TEST_UTILS_H_
#define UI_VIEWS_MUS_TEST_UTILS_H_
#include "base/memory/ptr_util.h"
#include "ui/views/mus/mus_client.h"
namespace views {
namespace test {
class MusClientTestApi {
public:
static std::unique_ptr<MusClient> Create(
service_manager::Connector* connector,
const service_manager::Identity& identity) {
return base::WrapUnique(
new MusClient(connector, identity, nullptr, true,
MusClientTestingState::CREATE_TESTING_STATE));
}
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(MusClientTestApi);
};
} // namespace test
} // namespace views
#endif // UI_VIEWS_MUS_TEST_UTILS_H_
|