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

Side by Side Diff: chrome/browser/media_galleries/fileapi/itunes_finder_win_unittest.cc

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 6 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 "base/base64.h" 5 #include "base/base64.h"
6 #include "base/base_paths_win.h" 6 #include "base/base_paths_win.h"
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/files/scoped_temp_dir.h" 9 #include "base/files/scoped_temp_dir.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 private: 87 private:
88 void FinderCallback(std::string* result_holder, const std::string& result) { 88 void FinderCallback(std::string* result_holder, const std::string& result) {
89 *result_holder = result; 89 *result_holder = result;
90 } 90 }
91 91
92 scoped_ptr<base::ScopedPathOverride> app_data_dir_override_; 92 scoped_ptr<base::ScopedPathOverride> app_data_dir_override_;
93 scoped_ptr<base::ScopedPathOverride> music_dir_override_; 93 scoped_ptr<base::ScopedPathOverride> music_dir_override_;
94 base::ScopedTempDir app_data_dir_; 94 base::ScopedTempDir app_data_dir_;
95 base::ScopedTempDir music_dir_; 95 base::ScopedTempDir music_dir_;
96 96
97 MessageLoop loop_; 97 base::MessageLoop loop_;
98 content::TestBrowserThread ui_thread_; 98 content::TestBrowserThread ui_thread_;
99 content::TestBrowserThread file_thread_; 99 content::TestBrowserThread file_thread_;
100 100
101 DISALLOW_COPY_AND_ASSIGN(ITunesFinderWinTest); 101 DISALLOW_COPY_AND_ASSIGN(ITunesFinderWinTest);
102 }; 102 };
103 103
104 TEST_F(ITunesFinderWinTest, NotFound) { 104 TEST_F(ITunesFinderWinTest, NotFound) {
105 std::string result = TestFindITunesLibrary(); 105 std::string result = TestFindITunesLibrary();
106 EXPECT_TRUE(result.empty()); 106 EXPECT_TRUE(result.empty());
107 } 107 }
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 " </dict>" 172 " </dict>"
173 "</plist>", EncodePath(library_xml).c_str()); 173 "</plist>", EncodePath(library_xml).c_str());
174 WritePrefFile(xml); 174 WritePrefFile(xml);
175 result = TestFindITunesLibrary(); 175 result = TestFindITunesLibrary();
176 EXPECT_TRUE(result.empty()); 176 EXPECT_TRUE(result.empty());
177 } 177 }
178 178
179 } // namespace 179 } // namespace
180 180
181 } // namespace itunes 181 } // namespace itunes
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698