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

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

Issue 10500016: Move test_browser_thread.h from content\test to content\public\test. This way we can enforce that i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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) 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/bind.h" 5 #include "base/bind.h"
6 #include "base/bind_helpers.h" 6 #include "base/bind_helpers.h"
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
11 #include "chrome/browser/extensions/file_reader.h" 11 #include "chrome/browser/extensions/file_reader.h"
12 #include "chrome/common/chrome_paths.h" 12 #include "chrome/common/chrome_paths.h"
13 #include "chrome/common/extensions/extension.h" 13 #include "chrome/common/extensions/extension.h"
14 #include "chrome/common/extensions/extension_resource.h" 14 #include "chrome/common/extensions/extension_resource.h"
15 #include "chrome/common/extensions/extension_test_util.h" 15 #include "chrome/common/extensions/extension_test_util.h"
16 #include "content/test/test_browser_thread.h" 16 #include "content/public/test/test_browser_thread.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 using content::BrowserThread; 19 using content::BrowserThread;
20 20
21 namespace { 21 namespace {
22 22
23 class FileReaderTest : public testing::Test { 23 class FileReaderTest : public testing::Test {
24 public: 24 public:
25 FileReaderTest() : file_thread_(BrowserThread::FILE) { 25 FileReaderTest() : file_thread_(BrowserThread::FILE) {
26 file_thread_.Start(); 26 file_thread_.Start();
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 scoped_refptr<FileReader> file_reader( 97 scoped_refptr<FileReader> file_reader(
98 new FileReader(resource, receiver.NewCallback())); 98 new FileReader(resource, receiver.NewCallback()));
99 file_reader->Start(); 99 file_reader->Start();
100 100
101 MessageLoop::current()->Run(); 101 MessageLoop::current()->Run();
102 102
103 EXPECT_FALSE(receiver.succeeded()); 103 EXPECT_FALSE(receiver.succeeded());
104 } 104 }
105 105
106 } // namespace 106 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698