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

Unified Diff: milo/appengine/buildbot/html_data.go

Issue 2748073006: Milo Refactor: Remove theme support (Closed)
Patch Set: Fix tests Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: milo/appengine/buildbot/html_data.go
diff --git a/milo/appengine/buildbot/html_data.go b/milo/appengine/buildbot/html_data.go
index 17752be28c1fb4f5ed66cf12cf3e4ecb75b5e2ab..b68f4ffd2ea8e58c529c0398507e988299a52a7c 100644
--- a/milo/appengine/buildbot/html_data.go
+++ b/milo/appengine/buildbot/html_data.go
@@ -24,16 +24,8 @@ var testCases = []struct {
{"win_chromium_rel_ng", 246309},
}
-// TestableBuild is a subclass of Build that interfaces with TestableHandler and
-// includes sample test data.
-type TestableBuild struct{ Build }
-
-// TestableBuilder is a subclass of Builder that interfaces with TestableHandler
-// and includes sample test data.
-type TestableBuilder struct{ Builder }
-
-// TestData returns sample test data.
-func (b Build) TestData() []settings.TestBundle {
+// BuildTestData returns sample test data for build pages.
+func BuildTestData() []settings.TestBundle {
c := memory.Use(context.Background())
c, _ = testclock.UseTime(c, testclock.TestTimeUTC)
bundles := []settings.TestBundle{}
@@ -54,8 +46,8 @@ func (b Build) TestData() []settings.TestBundle {
return bundles
}
-// TestData returns sample test data.
-func (b Builder) TestData() []settings.TestBundle {
+// BiulderTestData returns sample test data for builder pages.
+func BuilderTestData() []settings.TestBundle {
return []settings.TestBundle{
{
Description: "Basic Test no builds",

Powered by Google App Engine
This is Rietveld 408576698