// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_UI_TRANSLATE_TRANSLATE_BUBBLE_TEST_UTILS_H_
#define CHROME_BROWSER_UI_TRANSLATE_TRANSLATE_BUBBLE_TEST_UTILS_H_

#include <string>

class TranslateBubbleModel;
class BrowserWindowInterface;

namespace translate {

// TODO(groby): Move this over to TranslateBubbleDelegate once the translate
// bubble has been migrated over to the new Bubble system.
namespace test_utils {

// Obtain the TranslateBubbleModel associated with the current bubble.
const TranslateBubbleModel* GetCurrentModel(BrowserWindowInterface* browser);

void CloseCurrentBubble(BrowserWindowInterface* browser);

// Presses 'Translate' on the currently open Full Page Translate bubble.
void PressTranslate(BrowserWindowInterface* browser);

// Presses 'Revert' on the currently opened Full Page Translate bubble.
void PressRevert(BrowserWindowInterface* browser);

// Selects the target language with the given display name on the opened
// Full Page Translate bubble.
void SelectTargetLanguageByDisplayName(BrowserWindowInterface* browser,
                                       const std::u16string& display_name);

}  // namespace test_utils

}  // namespace translate

#endif  // CHROME_BROWSER_UI_TRANSLATE_TRANSLATE_BUBBLE_TEST_UTILS_H_
