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

Unified Diff: milo/appengine/swarming/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/swarming/html_data.go
diff --git a/milo/appengine/swarming/html_data.go b/milo/appengine/swarming/html_data.go
index 6230e543c12d086c31b6f270099d019d8325bc89..3985600ac236dc636df427422bd69c17cdc6ad60 100644
--- a/milo/appengine/swarming/html_data.go
+++ b/milo/appengine/swarming/html_data.go
@@ -147,16 +147,8 @@ func (svc debugSwarmingService) getTaskOutput(c context.Context, taskID string)
return svc.tc.getSwarmingOutput(), nil
}
-// TestableLog is a subclass of Log that interfaces with TestableHandler and
-// includes sample test data.
-type TestableLog struct{ Log }
-
-// TestableBuild is a subclass of Build that interfaces with TestableHandler and
-// includes sample test data.
-type TestableBuild struct{ Build }
-
-// TestData returns sample test data.
-func (l TestableLog) TestData() []settings.TestBundle {
+// LogTestData returns sample test data for log pages.
+func LogTestData() []settings.TestBundle {
return []settings.TestBundle{
{
Description: "Basic log",
@@ -235,8 +227,8 @@ func datagramGetResponse(project, prefix string, msg proto.Message) *logdog.GetR
}
}
-// TestData returns sample test data.
-func (b TestableBuild) TestData() []settings.TestBundle {
+// BuildTestData returns sample test data for swarming build pages.
+func BuildTestData() []settings.TestBundle {
basic := resp.MiloBuild{
Summary: resp.BuildComponent{
Label: "Test swarming build",

Powered by Google App Engine
This is Rietveld 408576698