Skip to content

Commit

Permalink
review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
bsclifton committed Mar 5, 2020
1 parent beb5435 commit 5cac8d6
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@
// you can obtain one at http://mozilla.org/MPL/2.0/.

#include "base/path_service.h"
#include "brave/browser/brave_content_browser_client.h"
#include "brave/common/brave_paths.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/common/chrome_content_client.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "content/public/test/browser_test_utils.h"
Expand All @@ -16,6 +14,8 @@ namespace {

const char kDetectBraveTest[] = "/detect_brave.html";

} // namespace

class NavigatorGetBraveDetectedTest : public InProcessBrowserTest {
public:
void SetUpOnMainThread() override {
Expand All @@ -37,8 +37,5 @@ IN_PROC_BROWSER_TEST_F(NavigatorGetBraveDetectedTest, IsDetected) {
ui_test_utils::NavigateToURL(browser(), url);
content::WebContents* contents =
browser()->tab_strip_model()->GetActiveWebContents();
EXPECT_EQ(true, EvalJs(
contents, "getBraveDetected()"));
EXPECT_EQ(true, EvalJs(contents, "getBraveDetected()"));
}

} // namespace

0 comments on commit 5cac8d6

Please sign in to comment.