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

Unified Diff: chrome/test/plugin/pdf_browsertest.cc

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (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
Index: chrome/test/plugin/pdf_browsertest.cc
===================================================================
--- chrome/test/plugin/pdf_browsertest.cc (revision 91771)
+++ chrome/test/plugin/pdf_browsertest.cc (working copy)
@@ -81,7 +81,7 @@
TabContentsWrapper* wrapper = browser()->GetSelectedTabContentsWrapper();
wrapper->CaptureSnapshot();
ui_test_utils::RegisterAndWait(this,
- NotificationType::TAB_SNAPSHOT_TAKEN,
+ chrome::TAB_SNAPSHOT_TAKEN,
Source<TabContentsWrapper>(wrapper));
ASSERT_FALSE(snapshot_different_) << "Rendering didn't match, see result "
"at " << snapshot_filename_.value().c_str();
@@ -109,7 +109,7 @@
virtual void Observe(NotificationType type,
const NotificationSource& source,
const NotificationDetails& details) {
- if (type == NotificationType::TAB_SNAPSHOT_TAKEN) {
+ if (type == chrome::TAB_SNAPSHOT_TAKEN) {
MessageLoopForUI::current()->Quit();
FilePath reference = ui_test_utils::GetTestFilePath(
GetPDFTestDir(),
@@ -172,7 +172,7 @@
reinterpret_cast<char*>(&png_data[0]), png_data.size());
}
}
- } else if (type == NotificationType::LOAD_STOP) {
+ } else if (type == chrome::LOAD_STOP) {
load_stop_notification_count_++;
}
}
@@ -185,7 +185,7 @@
std::string expected_filename_;
// If the snapshot is different, holds the location where it's saved.
FilePath snapshot_filename_;
- // How many times we've seen NotificationType::LOAD_STOP.
+ // How many times we've seen chrome::LOAD_STOP.
int load_stop_notification_count_;
scoped_ptr<net::TestServer> pdf_test_server_;
@@ -276,7 +276,7 @@
&(browser()->GetSelectedTabContents()->controller());
NotificationRegistrar registrar;
registrar.Add(this,
- NotificationType::LOAD_STOP,
+ chrome::LOAD_STOP,
Source<NavigationController>(controller));
std::string base_url = std::string("files/");
@@ -303,7 +303,7 @@
while (true) {
int last_count = load_stop_notification_count();
- // We might get extraneous NotificationType::LOAD_STOP notifications when
+ // We might get extraneous chrome::LOAD_STOP notifications when
// doing async loading. This happens when the first loader is cancelled
// and before creating a byte-range request loader.
bool complete = false;

Powered by Google App Engine
This is Rietveld 408576698