blob: dd3ee6fb269e581f9dc9e2e293296f05d8c58b54 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Copyright (c) 2011 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.
#include "chrome/test/webdriver/webdriver_util.h"
#import <Foundation/Foundation.h>
#include "base/file_path.h"
#include "base/mac/foundation_util.h"
namespace webdriver {
void GetApplicationDirs(std::vector<FilePath>* app_dirs) {
FilePath user_app_dir;
if (base::mac::GetUserDirectory(NSApplicationDirectory, &user_app_dir))
app_dirs->push_back(user_app_dir);
FilePath local_app_dir;
if (base::mac::GetLocalDirectory(NSApplicationDirectory, &local_app_dir))
app_dirs->push_back(local_app_dir);
}
} // namespace webdriver
|