Commit Graph

10 Commits (2904ca8ac085371bd9fe1fe5fa2b65a8c205bb81)

Author SHA1 Message Date
Elise Richards 7e3c26914c
For #15080: Handle default search engine when editing or removing (#15768) 4 years ago
Jeff Boek b1a8c0f483 For #9935 - Use the searchengine deferred 4 years ago
Mihai Branescu 93247e0b2f For #9425 - SearchFragment now reacts to undo operation for base engines 4 years ago
Mihai Branescu 46c1c130da For #9425 - Handle undo for custom search engines
On undo, get the template that the user entered for that engine and then
re-add it to the `CustomSearchEngineStore`
4 years ago
Tiger Oakes f0295048fa Remove Mockito 4 years ago
Michael Comella 6e0d851da3 For #9605: replace unit test runners with FenixRobolectricTestRunner.
This is how we can apply the new test runner to remove duplication.

This commit was generated programmatically with the following commands:
```
  // Replace test runners with new one.
  find app/src/test -type f -exec gsed -i "s/@RunWith(RobolectricTestRunner::class)/@RunWith(FenixRobolectricTestRunner::class)/" {} +
  find app/src/test -type f -exec gsed -i "s/@RunWith(AndroidJUnit4::class)/@RunWith(FenixRobolectricTestRunner::class)/" {} +

  // Replace imports of old test runners with new one
  find app/src/test -type f -exec gsed -i "s/org.robolectric.RobolectricTestRunner/org.mozilla.fenix.helpers.FenixRobolectricTestRunner/" {} +
  find app/src/test -type f -exec gsed -i "s/androidx.test.ext.junit.runners.AndroidJUnit4/org.mozilla.fenix.helpers.FenixRobolectricTestRunner/" {} +

  // Remove unused imports
  find app/src/test -type f -exec gsed -i "/@Config(application = TestApplication::class)/d" {} +
  find app/src/test -type f -exec gsed -i "/import org.mozilla.fenix.TestApplication/d" {} +
  find app/src/test -type f -exec gsed -i "/import org.robolectric.annotation.Config/d" {} +
```

Where gsed is the GNU version of sed installed via homebrew. After
running these commands, I need to manually clean up the following files:
- FenixRobolectricTestRunner
- LocaleManagerExtensionTest
4 years ago
Jeff Boek 020608275d For #6981 - Fixes tests to support locale aware changes 4 years ago
Severin Rudie dfea877fb7 No issue: small installedSearchEngineIdentifiers readability refactor 5 years ago
Severin Rudie 2aa80eff95 No issue: tests installedSearchEngineIdentifiers 5 years ago
Severin Rudie d3ff98816d No issue: begin moving FenixSearchEngineProvider into a testing harness 5 years ago