#include "chrome/browser/web_applications/policy/pre_redirection_url_observer.h"
#include "chrome/test/base/browser_with_test_window_test.h"
#include "content/public/test/mock_navigation_handle.h"
#include "content/public/test/web_contents_tester.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/page_transition_types.h"
namespace {
const char kURL1[] = …;
const char kURL2[] = …;
const char kURL3[] = …;
}
namespace webapps {
class PreRedirectionURLObserverTest : public BrowserWithTestWindowTest { … };
TEST_F(PreRedirectionURLObserverTest, NoNavigation) { … }
TEST_F(PreRedirectionURLObserverTest, ThreeNavigations) { … }
TEST_F(PreRedirectionURLObserverTest, OneNavigationTwoRedirects) { … }
TEST_F(PreRedirectionURLObserverTest, OneNavigationTwoSubframeNavigations) { … }
TEST_F(PreRedirectionURLObserverTest, OneNavigationTwoSameDocumentNavigations) { … }
TEST_F(PreRedirectionURLObserverTest, ManyMixedNavigations) { … }
}