Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(583)

Side by Side Diff: apps/app_shim/test/app_shim_host_manager_test_api_mac.cc

Issue 66043003: Put app shim IPC socket in a temporary directory. (Mac) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync, rebase, git cl format Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "apps/app_shim/test/app_shim_host_manager_test_api_mac.h" 5 #include "apps/app_shim/test/app_shim_host_manager_test_api_mac.h"
6 6
7 #include "apps/app_shim/app_shim_host_manager_mac.h" 7 #include "apps/app_shim/app_shim_host_manager_mac.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 9
10 namespace test { 10 namespace test {
11 11
12 // static
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;
18 }
19
20 AppShimHostManagerTestApi::AppShimHostManagerTestApi( 12 AppShimHostManagerTestApi::AppShimHostManagerTestApi(
21 AppShimHostManager* host_manager) 13 AppShimHostManager* host_manager)
22 : host_manager_(host_manager) { 14 : host_manager_(host_manager) {
23 DCHECK(host_manager_); 15 DCHECK(host_manager_);
24 } 16 }
25 17
26 IPC::ChannelFactory* AppShimHostManagerTestApi::factory() { 18 IPC::ChannelFactory* AppShimHostManagerTestApi::factory() {
27 return host_manager_->factory_.get(); 19 return host_manager_->factory_.get();
28 } 20 }
29 21
22 const base::FilePath& AppShimHostManagerTestApi::directory_in_tmp() {
23 return host_manager_->directory_in_tmp_;
24 }
25
30 } // namespace test 26 } // namespace test
OLDNEW
« no previous file with comments | « apps/app_shim/test/app_shim_host_manager_test_api_mac.h ('k') | chrome/common/mac/app_mode_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698