[fenix] Fixes https://github.com/mozilla-mobile/fenix/issues/423: [Battery Performance] Set up Fenix and Raptor
parent
afae7899c6
commit
2bf711e985
@ -0,0 +1,27 @@
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.fenix.browser
|
||||
|
||||
import android.app.Activity
|
||||
import android.content.Intent
|
||||
import android.os.Bundle
|
||||
import mozilla.components.support.utils.SafeIntent
|
||||
import org.mozilla.fenix.HomeActivity
|
||||
import org.mozilla.fenix.ext.components
|
||||
|
||||
/**
|
||||
* This activity is used for performance testing with Raptor/tp6:
|
||||
* https://wiki.mozilla.org/Performance_sheriffing/Raptor
|
||||
*/
|
||||
class BrowserPerformanceTestActivity : Activity() {
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
|
||||
components.core.testConfig = SafeIntent(intent).extras
|
||||
|
||||
startActivity(Intent(this, HomeActivity::class.java))
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue