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

Side by Side Diff: chrome/browser/memory/tab_manager_unittest.cc

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
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 "chrome/browser/memory/tab_manager.h" 5 #include "chrome/browser/memory/tab_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/macros.h"
11 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
12 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "build/build_config.h"
13 #include "chrome/browser/memory/tab_manager_web_contents_data.h" 15 #include "chrome/browser/memory/tab_manager_web_contents_data.h"
14 #include "chrome/browser/memory/tab_stats.h" 16 #include "chrome/browser/memory/tab_stats.h"
15 #include "chrome/browser/profiles/profile.h" 17 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/browser/ui/tabs/tab_strip_model.h" 18 #include "chrome/browser/ui/tabs/tab_strip_model.h"
17 #include "chrome/browser/ui/tabs/test_tab_strip_model_delegate.h" 19 #include "chrome/browser/ui/tabs/test_tab_strip_model_delegate.h"
18 #include "chrome/common/url_constants.h" 20 #include "chrome/common/url_constants.h"
19 #include "chrome/test/base/chrome_render_view_host_test_harness.h" 21 #include "chrome/test/base/chrome_render_view_host_test_harness.h"
20 #include "chrome/test/base/testing_profile.h" 22 #include "chrome/test/base/testing_profile.h"
21 #include "content/public/browser/web_contents.h" 23 #include "content/public/browser/web_contents.h"
22 #include "content/public/test/web_contents_tester.h" 24 #include "content/public/test/web_contents_tester.h"
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 EXPECT_EQ(new_last_active_time, test_contents->GetLastActiveTime()); 330 EXPECT_EQ(new_last_active_time, test_contents->GetLastActiveTime());
329 331
330 WebContents* null_contents = tab_manager.DiscardWebContentsAt(1, &tabstrip); 332 WebContents* null_contents = tab_manager.DiscardWebContentsAt(1, &tabstrip);
331 EXPECT_EQ(new_last_active_time, null_contents->GetLastActiveTime()); 333 EXPECT_EQ(new_last_active_time, null_contents->GetLastActiveTime());
332 334
333 tabstrip.CloseAllTabs(); 335 tabstrip.CloseAllTabs();
334 EXPECT_TRUE(tabstrip.empty()); 336 EXPECT_TRUE(tabstrip.empty());
335 } 337 }
336 338
337 } // namespace memory 339 } // namespace memory
OLDNEW
« no previous file with comments | « chrome/browser/memory/tab_manager_delegate_chromeos.h ('k') | chrome/browser/memory/tab_stats.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698