OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/drag_drop/drag_drop_controller.h" | 5 #include "ash/drag_drop/drag_drop_controller.h" |
6 | 6 |
7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "ash/test/ash_test_base.h" | 8 #include "ash/test/ash_test_base.h" |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 | 123 |
124 class DragDropTest : public test::AshTestBase { | 124 class DragDropTest : public test::AshTestBase { |
125 public: | 125 public: |
126 DragDropTest() {} | 126 DragDropTest() {} |
127 virtual ~DragDropTest() {} | 127 virtual ~DragDropTest() {} |
128 | 128 |
129 virtual void SetUp() OVERRIDE { | 129 virtual void SetUp() OVERRIDE { |
130 gfx::GLSurface::InitializeOneOffForTests(); | 130 gfx::GLSurface::InitializeOneOffForTests(); |
131 | 131 |
132 ui::RegisterPathProvider(); | 132 ui::RegisterPathProvider(); |
133 ResourceBundle::InitSharedInstanceWithLocale("en-US", NULL); | 133 ui::ResourceBundle::InitSharedInstanceWithLocale( |
| 134 "en-US", NULL, ui::ResourceBundle::LOAD_COMMON_RESOURCES); |
134 base::FilePath resources_pack_path; | 135 base::FilePath resources_pack_path; |
135 PathService::Get(base::DIR_MODULE, &resources_pack_path); | 136 PathService::Get(base::DIR_MODULE, &resources_pack_path); |
136 resources_pack_path = | 137 resources_pack_path = |
137 resources_pack_path.Append(FILE_PATH_LITERAL("resources.pak")); | 138 resources_pack_path.Append(FILE_PATH_LITERAL("resources.pak")); |
138 ResourceBundle::GetSharedInstance().AddDataPackFromPath( | 139 ResourceBundle::GetSharedInstance().AddDataPackFromPath( |
139 resources_pack_path, ui::SCALE_FACTOR_NONE); | 140 resources_pack_path, ui::SCALE_FACTOR_NONE); |
140 | 141 |
141 test::AshTestBase::SetUp(); | 142 test::AshTestBase::SetUp(); |
142 } | 143 } |
143 }; | 144 }; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 | 178 |
178 base::MessageLoop::current()->Run(); | 179 base::MessageLoop::current()->Run(); |
179 | 180 |
180 EXPECT_TRUE(target_view->dropped()); | 181 EXPECT_TRUE(target_view->dropped()); |
181 | 182 |
182 source->Close(); | 183 source->Close(); |
183 target->Close(); | 184 target->Close(); |
184 } | 185 } |
185 | 186 |
186 } // namespace ash | 187 } // namespace ash |
OLD | NEW |