Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4154)

Unified Diff: chrome/test/test_tab_strip_model_observer.h

Issue 7537033: Move more files from chrome/test to chrome/test/base, part #5 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/test_switches.cc ('k') | chrome/test/test_tab_strip_model_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/test_tab_strip_model_observer.h
===================================================================
--- chrome/test/test_tab_strip_model_observer.h (revision 94974)
+++ chrome/test/test_tab_strip_model_observer.h (working copy)
@@ -1,44 +0,0 @@
-// Copyright (c) 2011 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 CHROME_TEST_TEST_TAB_STRIP_MODEL_OBSERVER_H_
-#define CHROME_TEST_TEST_TAB_STRIP_MODEL_OBSERVER_H_
-#pragma once
-
-#include "base/compiler_specific.h"
-#include "chrome/browser/tabs/tab_strip_model_observer.h"
-#include "chrome/test/test_navigation_observer.h"
-
-class TabStripModel;
-
-// In order to support testing of print preview, we need to wait for the tab to
-// be inserted, and then observe notifications on the newly added tab's
-// controller to wait for it to be loaded. To support tests registering
-// javascript WebUI handlers, we need to inject the framework & registration
-// javascript before the webui page loads by calling back through the
-// TestTabStripModelObserver::LoadStartObserver when the new page starts
-// loading.
-class TestTabStripModelObserver : public TestNavigationObserver,
- public TabStripModelObserver {
- public:
- // Observe the |tab_strip_model|, which may not be NULL. If
- // |load_start_observer| is non-NULL, notify when the page load starts.
- TestTabStripModelObserver(
- TabStripModel* tab_strip_model,
- JsInjectionReadyObserver* js_injection_ready_observer);
- virtual ~TestTabStripModelObserver();
-
- private:
- // TabStripModelObserver:
- virtual void TabInsertedAt(TabContentsWrapper* contents, int index,
- bool foreground) OVERRIDE;
-
- // |tab_strip_model_| is the object this observes. The constructor will
- // register this as an observer, and the destructor will remove the observer.
- TabStripModel* tab_strip_model_;
-
- DISALLOW_COPY_AND_ASSIGN(TestTabStripModelObserver);
-};
-
-#endif // CHROME_TEST_TEST_TAB_STRIP_MODEL_OBSERVER_H_
« no previous file with comments | « chrome/test/test_switches.cc ('k') | chrome/test/test_tab_strip_model_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698