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

Side by Side Diff: content/test/content_test_launcher.cc

Issue 10919095: content_browsertests will now use fake webrtc devices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « content/browser/renderer_host/media/media_stream_manager.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 "content/public/test/test_launcher.h" 5 #include "content/public/test/test_launcher.h"
6 6
7 #include "base/base_paths.h" 7 #include "base/base_paths.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
11 #include "base/test/test_suite.h" 11 #include "base/test/test_suite.h"
12 #include "content/browser/renderer_host/media/media_stream_manager.h"
12 #include "content/public/app/content_main.h" 13 #include "content/public/app/content_main.h"
13 #include "content/public/common/content_switches.h" 14 #include "content/public/common/content_switches.h"
14 #include "content/public/test/content_test_suite_base.h" 15 #include "content/public/test/content_test_suite_base.h"
15 #include "content/shell/shell_content_browser_client.h" 16 #include "content/shell/shell_content_browser_client.h"
16 #include "content/shell/shell_content_client.h" 17 #include "content/shell/shell_content_client.h"
17 #include "content/shell/shell_main_delegate.h" 18 #include "content/shell/shell_main_delegate.h"
18 #include "content/shell/shell_switches.h" 19 #include "content/shell/shell_switches.h"
19 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
20 21
21 #if defined(OS_WIN) 22 #if defined(OS_WIN)
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 return true; 128 return true;
128 } 129 }
129 130
130 private: 131 private:
131 DISALLOW_COPY_AND_ASSIGN(ContentTestLauncherDelegate); 132 DISALLOW_COPY_AND_ASSIGN(ContentTestLauncherDelegate);
132 }; 133 };
133 134
134 } // namespace content 135 } // namespace content
135 136
136 int main(int argc, char** argv) { 137 int main(int argc, char** argv) {
138 // Always use fake WebRTC devices in this binary since we want to be able
139 // to test WebRTC even if we don't have any devices on the system.
140 media_stream::MediaStreamManager::AlwaysUseFakeDevice();
141
137 content::ContentTestLauncherDelegate launcher_delegate; 142 content::ContentTestLauncherDelegate launcher_delegate;
138 return test_launcher::LaunchTests(&launcher_delegate, argc, argv); 143 return test_launcher::LaunchTests(&launcher_delegate, argc, argv);
139 } 144 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/media/media_stream_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698