Commit 27c313b3 authored by Elly Fong-Jones's avatar Elly Fong-Jones Committed by Commit Bot

polychrome: mark LocationBarView tests as Views-only

These tests are testing behavior of LocationBarView, which is only used when
there is a BrowserView, so testing them with a BrowserWindowCocoa doesn't work.

Bug: 817408
Change-Id: Ic0d4f2cd072d4561c0f7df2c881e9df3b65a7354
Reviewed-on: https://chromium-review.googlesource.com/970743Reviewed-by: default avatarJustin Donnelly <jdonnelly@chromium.org>
Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org>
Cr-Commit-Position: refs/heads/master@{#544354}
parent 8b4fc0c7
......@@ -19,6 +19,7 @@
#include "chrome/common/chrome_paths.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "chrome/test/views/scoped_macviews_browser_mode.h"
#include "components/security_state/core/security_state.h"
#include "components/toolbar/toolbar_field_trial.h"
#include "components/toolbar/toolbar_model_impl.h"
......@@ -45,6 +46,7 @@ class LocationBarViewBrowserTest : public InProcessBrowserTest {
}
private:
test::ScopedMacViewsBrowserMode views_mode_{true};
DISALLOW_COPY_AND_ASSIGN(LocationBarViewBrowserTest);
};
......@@ -265,6 +267,7 @@ class SecurityIndicatorTest : public InProcessBrowserTest {
private:
scoped_refptr<net::X509Certificate> cert_;
test::ScopedMacViewsBrowserMode views_mode_{true};
std::unique_ptr<content::URLLoaderInterceptor> url_loader_interceptor_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment