Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: ash/drag_drop/drag_drop_interactive_uitest.cc

Issue 457103003: Merge ResourceBundle's InitSharedInstanceLocaleOnly with InitSharedInstanceWithLocale(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: REBASE Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « apps/app_shim/chrome_main_app_mode_mac.mm ('k') | ash/shell/content_client/shell_main_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698