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

Side by Side Diff: remoting/run_all_unittests.cc

Issue 6537022: Move media library path resolution into Chrome path provider. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: And again, this time with working tests... Created 9 years, 10 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "base/file_path.h" 5 #include "base/file_path.h"
6 #include "base/logging.h" 6 #include "base/logging.h"
7 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "base/test/test_suite.h" 8 #include "base/test/test_suite.h"
9 #include "media/base/media.h" 9 #include "media/base/media.h"
10 10
11 int main(int argc, char** argv) { 11 int main(int argc, char** argv) {
12 base::TestSuite test_suite(argc, argv); 12 base::TestSuite test_suite(argc, argv);
13 13
14 // Load the media library so we can use libvpx. 14 // Load the media library so we can use libvpx.
15 FilePath path; 15 FilePath path;
16 PathService::Get(base::DIR_MODULE, &path); 16 PathService::Get(base::DIR_MODULE, &path);
17 CHECK(media::InitializeMediaLibrary(path)) 17 media::InitializeMediaLibrary(path);
18 CHECK(media::IsMediaLibraryInitialized())
18 << "Cannot load media library"; 19 << "Cannot load media library";
19 return test_suite.Run(); 20 return test_suite.Run();
20 } 21 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698