- add sources.
[platform/framework/web/crosswalk.git] / src / ui / aura / test / test_aura_initializer.cc
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
3 // found in the LICENSE file.
4
5 #include "ui/aura/test/test_aura_initializer.h"
6
7 #include "base/base_paths.h"
8 #include "base/path_service.h"
9 #include "ui/base/resource/resource_bundle.h"
10
11 namespace aura {
12 namespace test {
13
14 TestAuraInitializer::TestAuraInitializer() {
15   base::FilePath pak_file;
16   PathService::Get(base::DIR_MODULE, &pak_file);
17   pak_file = pak_file.Append(FILE_PATH_LITERAL(
18       "aura_test_support_resources.pak"));
19   ui::ResourceBundle::InitSharedInstanceWithPakPath(pak_file);
20 }
21
22 TestAuraInitializer::~TestAuraInitializer() {
23   ui::ResourceBundle::CleanupSharedInstance();
24 }
25
26 }  // namespace test
27 }  // namespace aura