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

Unified Diff: components/test_runner/mock_color_chooser.h

Issue 2707183003: Move //components/test_runner back into //content/shell (Closed)
Patch Set: Trim DEPS Created 3 years, 10 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: components/test_runner/mock_color_chooser.h
diff --git a/components/test_runner/mock_color_chooser.h b/components/test_runner/mock_color_chooser.h
deleted file mode 100644
index 8e6d87ae817bf10fe25f07262e47cd4e3fb65105..0000000000000000000000000000000000000000
--- a/components/test_runner/mock_color_chooser.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// 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.
-
-#ifndef COMPONENTS_TEST_RUNNER_MOCK_COLOR_CHOOSER_H_
-#define COMPONENTS_TEST_RUNNER_MOCK_COLOR_CHOOSER_H_
-
-#include "base/macros.h"
-#include "base/memory/weak_ptr.h"
-#include "third_party/WebKit/public/web/WebColorChooser.h"
-#include "third_party/WebKit/public/web/WebColorChooserClient.h"
-
-namespace test_runner {
-
-class TestRunner;
-class WebTestDelegate;
-
-class MockColorChooser : public blink::WebColorChooser {
- public:
- // Caller has to guarantee that |client| and |delegate| are alive
- // until |WebColorChooserClient::didEndChooser| is called.
- // Caller has to guarantee that |test_runner| lives longer
- // than MockColorChooser.
- MockColorChooser(blink::WebColorChooserClient* client,
- WebTestDelegate* delegate,
- TestRunner* test_runner);
- ~MockColorChooser() override;
-
- // blink::WebColorChooser implementation.
- void setSelectedColor(const blink::WebColor color) override;
- void endChooser() override;
-
- void InvokeDidEndChooser();
-
- private:
- blink::WebColorChooserClient* client_;
- WebTestDelegate* delegate_;
- TestRunner* test_runner_;
-
- base::WeakPtrFactory<MockColorChooser> weak_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(MockColorChooser);
-};
-
-} // namespace test_runner
-
-#endif // COMPONENTS_TEST_RUNNER_MOCK_COLOR_CHOOSER_H_

Powered by Google App Engine
This is Rietveld 408576698