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

Side by Side Diff: chrome/browser/page_cycler/page_cycler_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) 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 "base/file_util.h" 5 #include "base/file_util.h"
6 #include "base/path_service.h" 6 #include "base/path_service.h"
7 #include "base/string_split.h" 7 #include "base/string_split.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/threading/sequenced_worker_pool.h" 9 #include "base/threading/sequenced_worker_pool.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "chrome/app/chrome_command_ids.h" 11 #include "chrome/app/chrome_command_ids.h"
12 #include "chrome/browser/browser_process.h" 12 #include "chrome/browser/browser_process.h"
13 #include "chrome/browser/page_cycler/page_cycler.h" 13 #include "chrome/browser/page_cycler/page_cycler.h"
14 #include "chrome/common/chrome_paths.h" 14 #include "chrome/common/chrome_paths.h"
15 #include "chrome/common/url_constants.h" 15 #include "chrome/common/url_constants.h"
16 #include "chrome/test/base/browser_with_test_window_test.h" 16 #include "chrome/test/base/browser_with_test_window_test.h"
17 #include "chrome/test/base/testing_pref_service.h" 17 #include "chrome/test/base/testing_pref_service.h"
18 #include "content/public/browser/render_view_host.h" 18 #include "content/public/browser/render_view_host.h"
19 #include "content/test/test_browser_thread.h" 19 #include "content/public/test/test_browser_thread.h"
20 #include "net/base/net_errors.h" 20 #include "net/base/net_errors.h"
21 #include "testing/gmock/include/gmock/gmock.h" 21 #include "testing/gmock/include/gmock/gmock.h"
22 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
23 23
24 using ::testing::_; 24 using ::testing::_;
25 using ::testing::Invoke; 25 using ::testing::Invoke;
26 using content::RenderViewHost; 26 using content::RenderViewHost;
27 using content::TestBrowserThread; 27 using content::TestBrowserThread;
28 using content::WebContentsObserver; 28 using content::WebContentsObserver;
29 using file_util::ContentsEqual; 29 using file_util::ContentsEqual;
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 .WillRepeatedly(Invoke(page_cycler(), 339 .WillRepeatedly(Invoke(page_cycler(),
340 &MockPageCycler::PageCyclerDidFinishLoad)); 340 &MockPageCycler::PageCyclerDidFinishLoad));
341 341
342 for (int i = 0; i < kNumLoads; ++i) 342 for (int i = 0; i < kNumLoads; ++i)
343 FinishLoad(); 343 FinishLoad();
344 344
345 PumpLoop(); 345 PumpLoop();
346 EXPECT_FALSE(PathExists(errors_file())); 346 EXPECT_FALSE(PathExists(errors_file()));
347 ASSERT_TRUE(PathExists(stats_file())); 347 ASSERT_TRUE(PathExists(stats_file()));
348 } 348 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698