Index: athena/test/sample_activity_factory.cc |
diff --git a/athena/test/sample_activity_factory.cc b/athena/test/sample_activity_factory.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0084ce6ffb4793f0df29ffe7c80a22a2bab5a02a |
--- /dev/null |
+++ b/athena/test/sample_activity_factory.cc |
@@ -0,0 +1,33 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "athena/test/sample_activity_factory.h" |
+ |
+#include <string> |
+ |
+#include "athena/test/sample_activity.h" |
+#include "third_party/skia/include/core/SkColor.h" |
+ |
+namespace athena { |
+namespace test { |
+ |
+namespace { |
+const SkColor kDefaultColor = SK_ColorRED; |
+const SkColor kDefaultContentColor = SK_ColorGREEN; |
+const char kDefaultTitle[] = "Activity 1"; |
+} |
+ |
+SampleActivityFactory::SampleActivityFactory() {} |
+ |
+SampleActivityFactory::~SampleActivityFactory() {} |
+ |
+Activity* SampleActivityFactory::CreateWebActivity( |
+ content::BrowserContext* browser_context, |
+ const GURL& url) { |
+ return new SampleActivity( |
+ kDefaultColor, kDefaultContentColor, std::string(kDefaultTitle)); |
+} |
+ |
+} // namespace test |
+} // namespace athena |