OLD | NEW |
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/prefs/testing_pref_service.h" |
7 #include "base/string_split.h" | 8 #include "base/string_split.h" |
8 #include "base/string_util.h" | 9 #include "base/string_util.h" |
9 #include "base/threading/sequenced_worker_pool.h" | 10 #include "base/threading/sequenced_worker_pool.h" |
10 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
11 #include "chrome/app/chrome_command_ids.h" | 12 #include "chrome/app/chrome_command_ids.h" |
12 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
13 #include "chrome/browser/page_cycler/page_cycler.h" | 14 #include "chrome/browser/page_cycler/page_cycler.h" |
14 #include "chrome/browser/ui/browser.h" | 15 #include "chrome/browser/ui/browser.h" |
15 #include "chrome/browser/ui/browser_list.h" | 16 #include "chrome/browser/ui/browser_list.h" |
16 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 17 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
17 #include "chrome/common/chrome_paths.h" | 18 #include "chrome/common/chrome_paths.h" |
18 #include "chrome/common/url_constants.h" | 19 #include "chrome/common/url_constants.h" |
19 #include "chrome/test/base/browser_with_test_window_test.h" | 20 #include "chrome/test/base/browser_with_test_window_test.h" |
20 #include "chrome/test/base/testing_pref_service.h" | |
21 #include "content/public/browser/render_view_host.h" | 21 #include "content/public/browser/render_view_host.h" |
22 #include "content/public/test/test_browser_thread.h" | 22 #include "content/public/test/test_browser_thread.h" |
23 #include "net/base/net_errors.h" | 23 #include "net/base/net_errors.h" |
24 #include "testing/gmock/include/gmock/gmock.h" | 24 #include "testing/gmock/include/gmock/gmock.h" |
25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
26 | 26 |
27 using ::testing::_; | 27 using ::testing::_; |
28 using ::testing::Invoke; | 28 using ::testing::Invoke; |
29 using content::RenderViewHost; | 29 using content::RenderViewHost; |
30 using content::TestBrowserThread; | 30 using content::TestBrowserThread; |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 .WillRepeatedly(Invoke(page_cycler(), | 346 .WillRepeatedly(Invoke(page_cycler(), |
347 &MockPageCycler::PageCyclerDidFinishLoad)); | 347 &MockPageCycler::PageCyclerDidFinishLoad)); |
348 | 348 |
349 for (int i = 0; i < kNumLoads; ++i) | 349 for (int i = 0; i < kNumLoads; ++i) |
350 FinishLoad(); | 350 FinishLoad(); |
351 | 351 |
352 PumpLoop(); | 352 PumpLoop(); |
353 EXPECT_FALSE(PathExists(errors_file())); | 353 EXPECT_FALSE(PathExists(errors_file())); |
354 ASSERT_TRUE(PathExists(stats_file())); | 354 ASSERT_TRUE(PathExists(stats_file())); |
355 } | 355 } |
OLD | NEW |