summaryrefslogtreecommitdiffstats
path: root/ash/test/test_suite_init.mm
blob: df141142d0c2c19f99e6b6b5ce85bb4797886a3f (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
// Copyright (c) 2012 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 "ash/test/test_suite_init.h"

#import <Cocoa/Cocoa.h>

#include "base/file_path.h"
#include "base/mac/bundle_locations.h"
#include "base/memory/scoped_nsobject.h"
#include "base/path_service.h"

namespace ash {
namespace test {

void OverrideFrameworkBundle() {
  // Look in the AuraShell.app directory for resources.
  FilePath path;
  PathService::Get(base::DIR_EXE, &path);
  path = path.Append(FILE_PATH_LITERAL("AuraShell.app"));
  base::mac::SetOverrideFrameworkBundlePath(path);
}

}  // namespace test
}  // namespace ash