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

Side by Side Diff: chrome/browser/page_cycler/page_cycler_unittest.cc

Issue 10551002: TabContentsWrapper -> TabContents, part 56. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Not killing GetSelectedWebContents yet 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"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 virtual ~PageCyclerTest() { 103 virtual ~PageCyclerTest() {
104 } 104 }
105 105
106 virtual void SetUp() OVERRIDE { 106 virtual void SetUp() OVERRIDE {
107 PathService::Get(chrome::DIR_TEST_DATA, &test_data_dir_); 107 PathService::Get(chrome::DIR_TEST_DATA, &test_data_dir_);
108 test_data_dir_ = test_data_dir_.AppendASCII("page_cycler"); 108 test_data_dir_ = test_data_dir_.AppendASCII("page_cycler");
109 109
110 BrowserWithTestWindowTest::SetUp(); 110 BrowserWithTestWindowTest::SetUp();
111 AddTab(browser(), kAboutURL); 111 AddTab(browser(), kAboutURL);
112 ASSERT_FALSE(browser()->GetSelectedWebContents() == NULL); 112 ASSERT_FALSE(browser()->GetActiveWebContents() == NULL);
113 } 113 }
114 114
115 void InitFilePaths(const FilePath& temp_path) { 115 void InitFilePaths(const FilePath& temp_path) {
116 errors_file_ = temp_path.AppendASCII("errors_file"); 116 errors_file_ = temp_path.AppendASCII("errors_file");
117 stats_file_ = temp_path.AppendASCII("stats_file"); 117 stats_file_ = temp_path.AppendASCII("stats_file");
118 118
119 CHECK(!file_util::PathExists(errors_file_)); 119 CHECK(!file_util::PathExists(errors_file_));
120 CHECK(!file_util::PathExists(stats_file_)); 120 CHECK(!file_util::PathExists(stats_file_));
121 } 121 }
122 122
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 .WillRepeatedly(Invoke(page_cycler(), 338 .WillRepeatedly(Invoke(page_cycler(),
339 &MockPageCycler::PageCyclerDidFinishLoad)); 339 &MockPageCycler::PageCyclerDidFinishLoad));
340 340
341 for (int i = 0; i < kNumLoads; ++i) 341 for (int i = 0; i < kNumLoads; ++i)
342 FinishLoad(); 342 FinishLoad();
343 343
344 PumpLoop(); 344 PumpLoop();
345 EXPECT_FALSE(PathExists(errors_file())); 345 EXPECT_FALSE(PathExists(errors_file()));
346 ASSERT_TRUE(PathExists(stats_file())); 346 ASSERT_TRUE(PathExists(stats_file()));
347 } 347 }
OLDNEW
« no previous file with comments | « chrome/browser/page_cycler/page_cycler.cc ('k') | chrome/browser/safe_browsing/client_side_detection_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698