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

Side by Side Diff: chrome/test/base/view_event_test_platform_part_chromeos.cc

Issue 477663004: Merged FakedDBusThreadManager with DBusThreadManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chrome/test/base/view_event_test_platform_part.h" 5 #include "chrome/test/base/view_event_test_platform_part.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/shell_init_params.h" 8 #include "ash/shell_init_params.h"
9 #include "ash/test/test_session_state_delegate.h" 9 #include "ash/test/test_session_state_delegate.h"
10 #include "ash/test/test_shell_delegate.h" 10 #include "ash/test/test_shell_delegate.h"
(...skipping 23 matching lines...) Expand all
34 wm::WMState wm_state_; 34 wm::WMState wm_state_;
35 35
36 DISALLOW_COPY_AND_ASSIGN(ViewEventTestPlatformPartChromeOS); 36 DISALLOW_COPY_AND_ASSIGN(ViewEventTestPlatformPartChromeOS);
37 }; 37 };
38 38
39 ViewEventTestPlatformPartChromeOS::ViewEventTestPlatformPartChromeOS( 39 ViewEventTestPlatformPartChromeOS::ViewEventTestPlatformPartChromeOS(
40 ui::ContextFactory* context_factory) { 40 ui::ContextFactory* context_factory) {
41 // Ash Shell can't just live on its own without a browser process, we need to 41 // Ash Shell can't just live on its own without a browser process, we need to
42 // also create the message center. 42 // also create the message center.
43 message_center::MessageCenter::Initialize(); 43 message_center::MessageCenter::Initialize();
44 chromeos::DBusThreadManager::InitializeWithStub(); 44 chromeos::DBusThreadManager::Initialize();
45 chromeos::CrasAudioHandler::InitializeForTesting(); 45 chromeos::CrasAudioHandler::InitializeForTesting();
46 chromeos::NetworkHandler::Initialize(); 46 chromeos::NetworkHandler::Initialize();
47 ash::test::TestShellDelegate* shell_delegate = 47 ash::test::TestShellDelegate* shell_delegate =
48 new ash::test::TestShellDelegate(); 48 new ash::test::TestShellDelegate();
49 ash::ShellInitParams init_params; 49 ash::ShellInitParams init_params;
50 init_params.delegate = shell_delegate; 50 init_params.delegate = shell_delegate;
51 init_params.context_factory = context_factory; 51 init_params.context_factory = context_factory;
52 ash::Shell::CreateInstance(init_params); 52 ash::Shell::CreateInstance(init_params);
53 shell_delegate->test_session_state_delegate()->SetActiveUserSessionStarted( 53 shell_delegate->test_session_state_delegate()->SetActiveUserSessionStarted(
54 true); 54 true);
(...skipping 12 matching lines...) Expand all
67 aura::Env::DeleteInstance(); 67 aura::Env::DeleteInstance();
68 } 68 }
69 69
70 } // namespace 70 } // namespace
71 71
72 // static 72 // static
73 ViewEventTestPlatformPart* ViewEventTestPlatformPart::Create( 73 ViewEventTestPlatformPart* ViewEventTestPlatformPart::Create(
74 ui::ContextFactory* context_factory) { 74 ui::ContextFactory* context_factory) {
75 return new ViewEventTestPlatformPartChromeOS(context_factory); 75 return new ViewEventTestPlatformPartChromeOS(context_factory);
76 } 76 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698