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

Unified Diff: chrome/browser/sessions/tab_loader.h

Issue 2466883002: Add TabLoaderTest (Closed)
Patch Set: Use ScopedFeatureList Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/sessions/tab_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sessions/tab_loader.h
diff --git a/chrome/browser/sessions/tab_loader.h b/chrome/browser/sessions/tab_loader.h
index 92dd7fa523052cabed06d866d76db1769d55baea..81c6dd0b1e18fc89ea341b176cf3fc1deac35578 100644
--- a/chrome/browser/sessions/tab_loader.h
+++ b/chrome/browser/sessions/tab_loader.h
@@ -11,6 +11,7 @@
#include <memory>
#include <set>
+#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "base/memory/memory_coordinator_client.h"
#include "base/memory/memory_pressure_listener.h"
@@ -26,6 +27,7 @@ class RenderWidgetHost;
}
class SessionRestoreStatsCollector;
+class TabLoaderTest;
// TabLoader is responsible for loading tabs after session restore has finished
// creating all the tabs. Tabs are loaded after a previously tab finishes
@@ -60,6 +62,8 @@ class TabLoader : public content::NotificationObserver,
const base::TimeTicks& restore_started);
private:
+ FRIEND_TEST_ALL_PREFIXES(TabLoaderTest, OnMemoryStateChange);
+
friend class base::RefCounted<TabLoader>;
using TabsLoading = std::set<content::NavigationController*>;
« no previous file with comments | « no previous file | chrome/browser/sessions/tab_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698