|
|
@ -59,6 +59,7 @@ import org.mozilla.fenix.GleanMetrics.RecentTabs
|
|
|
|
import org.mozilla.fenix.GleanMetrics.TopSites
|
|
|
|
import org.mozilla.fenix.GleanMetrics.TopSites
|
|
|
|
import org.mozilla.fenix.HomeActivity
|
|
|
|
import org.mozilla.fenix.HomeActivity
|
|
|
|
import org.mozilla.fenix.R
|
|
|
|
import org.mozilla.fenix.R
|
|
|
|
|
|
|
|
import org.mozilla.fenix.browser.BrowserFragmentDirections
|
|
|
|
import org.mozilla.fenix.browser.browsingmode.BrowsingMode
|
|
|
|
import org.mozilla.fenix.browser.browsingmode.BrowsingMode
|
|
|
|
import org.mozilla.fenix.components.Analytics
|
|
|
|
import org.mozilla.fenix.components.Analytics
|
|
|
|
import org.mozilla.fenix.components.AppStore
|
|
|
|
import org.mozilla.fenix.components.AppStore
|
|
|
@ -1099,6 +1100,11 @@ class DefaultSessionControlControllerTest {
|
|
|
|
verify {
|
|
|
|
verify {
|
|
|
|
settings.incrementNumTimesPrivateModeOpened()
|
|
|
|
settings.incrementNumTimesPrivateModeOpened()
|
|
|
|
AppAction.ModeChange(Mode.fromBrowsingMode(newMode))
|
|
|
|
AppAction.ModeChange(Mode.fromBrowsingMode(newMode))
|
|
|
|
|
|
|
|
navController.navigate(
|
|
|
|
|
|
|
|
BrowserFragmentDirections.actionGlobalSearchDialog(
|
|
|
|
|
|
|
|
sessionId = null,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -1129,6 +1135,11 @@ class DefaultSessionControlControllerTest {
|
|
|
|
appStore.dispatch(
|
|
|
|
appStore.dispatch(
|
|
|
|
AppAction.ModeChange(Mode.fromBrowsingMode(newMode)),
|
|
|
|
AppAction.ModeChange(Mode.fromBrowsingMode(newMode)),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
navController.navigate(
|
|
|
|
|
|
|
|
BrowserFragmentDirections.actionGlobalSearchDialog(
|
|
|
|
|
|
|
|
sessionId = null,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|