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

Side by Side Diff: chrome/browser/extensions/file_reader_unittest.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/callback.h" 5 #include "base/callback.h"
6 #include "base/file_path.h" 6 #include "base/file_path.h"
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "chrome/browser/extensions/file_reader.h" 10 #include "chrome/browser/extensions/file_reader.h"
11 #include "chrome/common/chrome_paths.h" 11 #include "chrome/common/chrome_paths.h"
12 #include "chrome/common/extensions/extension.h" 12 #include "chrome/common/extensions/extension.h"
13 #include "chrome/common/extensions/extension_resource.h" 13 #include "chrome/common/extensions/extension_resource.h"
14 #include "chrome/common/extensions/extension_test_util.h" 14 #include "chrome/common/extensions/extension_test_util.h"
15 #include "content/test/test_browser_thread.h" 15 #include "content/test/test_browser_thread.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 using content::BrowserThread;
19
18 namespace { 20 namespace {
19 21
20 class FileReaderTest : public testing::Test { 22 class FileReaderTest : public testing::Test {
21 public: 23 public:
22 FileReaderTest() : file_thread_(BrowserThread::FILE) { 24 FileReaderTest() : file_thread_(BrowserThread::FILE) {
23 file_thread_.Start(); 25 file_thread_.Start();
24 } 26 }
25 private: 27 private:
26 MessageLoop message_loop_; 28 MessageLoop message_loop_;
27 content::TestBrowserThread file_thread_; 29 content::TestBrowserThread file_thread_;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 scoped_refptr<FileReader> file_reader( 96 scoped_refptr<FileReader> file_reader(
95 new FileReader(resource, receiver.NewCallback())); 97 new FileReader(resource, receiver.NewCallback()));
96 file_reader->Start(); 98 file_reader->Start();
97 99
98 MessageLoop::current()->Run(); 100 MessageLoop::current()->Run();
99 101
100 EXPECT_FALSE(receiver.succeeded()); 102 EXPECT_FALSE(receiver.succeeded());
101 } 103 }
102 104
103 } // namespace 105 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/extensions/file_reader.cc ('k') | chrome/browser/extensions/image_loading_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698