OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ash/test/test_suite_init.h" | 5 #include "ash/test/test_suite_init.h" |
6 | 6 |
7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
8 | 8 |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/mac/bundle_locations.h" | 10 #include "base/mac/bundle_locations.h" |
11 #include "base/mac/scoped_nsobject.h" | |
12 #include "base/path_service.h" | 11 #include "base/path_service.h" |
13 | 12 |
14 namespace ash { | 13 namespace ash { |
15 namespace test { | 14 namespace test { |
16 | 15 |
17 void OverrideFrameworkBundle() { | 16 void OverrideFrameworkBundle() { |
18 // Look in the AuraShell.app directory for resources. | 17 // Look in the AuraShell.app directory for resources. |
19 base::FilePath path; | 18 base::FilePath path; |
20 PathService::Get(base::DIR_EXE, &path); | 19 PathService::Get(base::DIR_EXE, &path); |
21 path = path.Append(FILE_PATH_LITERAL("AuraShell.app")); | 20 path = path.Append(FILE_PATH_LITERAL("AuraShell.app")); |
22 base::mac::SetOverrideFrameworkBundlePath(path); | 21 base::mac::SetOverrideFrameworkBundlePath(path); |
23 } | 22 } |
24 | 23 |
25 } // namespace test | 24 } // namespace test |
26 } // namespace ash | 25 } // namespace ash |
OLD | NEW |