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

Unified Diff: blimp/engine/browser_tests/blimp_browser_test.h

Issue 2620213004: Remove all blimp browsertests. (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « blimp/engine/browser_tests/DEPS ('k') | blimp/engine/browser_tests/blimp_browser_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/engine/browser_tests/blimp_browser_test.h
diff --git a/blimp/engine/browser_tests/blimp_browser_test.h b/blimp/engine/browser_tests/blimp_browser_test.h
deleted file mode 100644
index 18b0e220239c78925d504f1b4777d2db0a12908b..0000000000000000000000000000000000000000
--- a/blimp/engine/browser_tests/blimp_browser_test.h
+++ /dev/null
@@ -1,80 +0,0 @@
-// Copyright 2016 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 BLIMP_ENGINE_BROWSER_TESTS_BLIMP_BROWSER_TEST_H_
-#define BLIMP_ENGINE_BROWSER_TESTS_BLIMP_BROWSER_TEST_H_
-
-#include <memory>
-
-#include "base/synchronization/waitable_event.h"
-#include "base/threading/thread_restrictions.h"
-#include "content/public/test/browser_test_base.h"
-
-namespace blimp {
-namespace client {
-struct Assignment;
-} // namespace client
-
-namespace engine {
-class BlimpEngineSession;
-} // namespace engine
-
-// Base class for tests which require a full instance of the Blimp engine.
-class BlimpBrowserTest : public content::BrowserTestBase {
- public:
- // Notify that an asynchronous test is now complete and the test runner should
- // exit.
- void QuitRunLoop();
-
- // Tells RunUntilCompletion() to break and discontinue processing UI & IO
- // thread MessageLoops.
- void SignalCompletion();
-
- protected:
- BlimpBrowserTest();
- ~BlimpBrowserTest() override;
-
- // Processes tasks in the UI and IO thread until SignalCompletion() is
- // called.
- void RunUntilCompletion();
-
- // Allow the UI thread to wait. This bypasses base::ThreadRestrictions and is
- // used for client/engine integration tests.
- void AllowUIWaits();
-
- engine::BlimpEngineSession* GetEngineSession();
-
- client::Assignment GetAssignment();
-
- // testing::Test implementation.
- void SetUp() override;
-
- // content::BrowserTestBase implementation.
- void RunTestOnMainThreadLoop() override;
- void SetUpCommandLine(base::CommandLine* command_line) override;
- void SetUpOnMainThread() override;
- void TearDownOnMainThread() override;
-
- private:
- // Receives the port number from an asynchronously connected socket.
- // Calls SignalCompletion() when set.
- void OnGetEnginePortCompletion(uint16_t port);
-
- uint16_t engine_port_;
-
- // Used to signal the completion of asynchronous processing to
- // RunUntilCompletion().
- base::WaitableEvent completion_event_;
-
- // Used to allow UI thread waits. This is useful for integration tests that
- // require setting up client components, as testing those sometimes requires
- // setting up GL contexts that might block.
- std::unique_ptr<base::ThreadRestrictions::ScopedAllowWait> allow_ui_waits_;
-
- DISALLOW_COPY_AND_ASSIGN(BlimpBrowserTest);
-};
-
-} // namespace blimp
-
-#endif // BLIMP_ENGINE_BROWSER_TESTS_BLIMP_BROWSER_TEST_H_
« no previous file with comments | « blimp/engine/browser_tests/DEPS ('k') | blimp/engine/browser_tests/blimp_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698