| Index: content/public/test/browser_test_utils.h
|
| ===================================================================
|
| --- content/public/test/browser_test_utils.h (revision 0)
|
| +++ content/public/test/browser_test_utils.h (revision 0)
|
| @@ -0,0 +1,33 @@
|
| +// Copyright (c) 2012 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 CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_
|
| +#define CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_
|
| +
|
| +#include "base/callback_forward.h"
|
| +#include "googleurl/src/gurl.h"
|
| +
|
| +namespace base {
|
| +class RunLoop;
|
| +}
|
| +
|
| +// A collections of functions designed for use with content_browsertests and
|
| +// browser_tests.
|
| +// TO BE CLEAR: any function here must work against both binaries. If it only
|
| +// works with browser_tests, it should be in chrome\test\base\ui_test_utils.h.
|
| +// If it only works with content_browsertests, it should be in
|
| +// content\test\content_browser_test_utils.h.
|
| +
|
| +namespace content {
|
| +
|
| +// Variant of RunMessageLoop that takes RunLoop.
|
| +void RunThisRunLoop(base::RunLoop* run_loop);
|
| +
|
| +// Get task to quit the given RunLoop. It allows a few generations of pending
|
| +// tasks to run as opposed to run_loop->QuitClosure().
|
| +base::Closure GetQuitTaskForRunLoop(base::RunLoop* run_loop);
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_
|
|
|