summaryrefslogtreecommitdiffstats
path: root/ui/aura/test/test_aura_initializer.cc
blob: c336eb44d2ede99a00bc2bd4a04d26353cca6767 (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
27
// 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 "ui/aura/test/test_aura_initializer.h"

#include "base/base_paths.h"
#include "base/path_service.h"
#include "ui/base/resource/resource_bundle.h"

namespace aura {
namespace test {

TestAuraInitializer::TestAuraInitializer() {
  base::FilePath pak_file;
  PathService::Get(base::DIR_MODULE, &pak_file);
  pak_file = pak_file.Append(FILE_PATH_LITERAL(
      "aura_test_support_resources.pak"));
  ui::ResourceBundle::InitSharedInstanceWithPakPath(pak_file);
}

TestAuraInitializer::~TestAuraInitializer() {
  ui::ResourceBundle::CleanupSharedInstance();
}

}  // namespace test
}  // namespace aura