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 "apps/app_shim/test/app_shim_host_manager_test_api_mac.h"
7 #include "apps/app_shim/app_shim_host_manager_mac.h"
8 #include "base/files/file_path.h"
13 void AppShimHostManagerTestApi::OverrideUserDataDir(
14 const base::FilePath
& user_data_dir
) {
15 CR_DEFINE_STATIC_LOCAL(base::FilePath
, override_user_data_dir
, ());
16 override_user_data_dir
= user_data_dir
;
17 AppShimHostManager::g_override_user_data_dir_
= &override_user_data_dir
;
20 AppShimHostManagerTestApi::AppShimHostManagerTestApi(
21 AppShimHostManager
* host_manager
)
22 : host_manager_(host_manager
) {
23 DCHECK(host_manager_
);
26 IPC::ChannelFactory
* AppShimHostManagerTestApi::factory() {
27 return host_manager_
->factory_
.get();