diff options
author | scottbyer@google.com <scottbyer@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-29 23:17:30 +0000 |
---|---|---|
committer | scottbyer@google.com <scottbyer@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-29 23:17:30 +0000 |
commit | 2283eead0fb7740ed50fec1ac84fe6e1007b1540 (patch) | |
tree | f7cf3a627e649d5a4206671fecc23179d96025ab /chrome/browser/printing/print_dialog_cloud_unittest.cc | |
parent | 3697dc7a46be81c92c32fa8f1400801c699e7b55 (diff) | |
download | chromium_src-2283eead0fb7740ed50fec1ac84fe6e1007b1540.zip chromium_src-2283eead0fb7740ed50fec1ac84fe6e1007b1540.tar.gz chromium_src-2283eead0fb7740ed50fec1ac84fe6e1007b1540.tar.bz2 |
Refactor out the cloud print URL management into a separate header/file for future use in a TODO cleanup.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/3567002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61006 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/printing/print_dialog_cloud_unittest.cc')
-rw-r--r-- | chrome/browser/printing/print_dialog_cloud_unittest.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/printing/print_dialog_cloud_unittest.cc b/chrome/browser/printing/print_dialog_cloud_unittest.cc index 16f7dab..5cde305 100644 --- a/chrome/browser/printing/print_dialog_cloud_unittest.cc +++ b/chrome/browser/printing/print_dialog_cloud_unittest.cc @@ -13,6 +13,7 @@ #include "base/values.h" #include "base/weak_ptr.h" #include "chrome/browser/chrome_thread.h" +#include "chrome/browser/printing/cloud_print/cloud_print_url.h" #include "chrome/common/chrome_paths.h" #include "chrome/common/notification_details.h" #include "chrome/common/notification_observer.h" @@ -153,13 +154,13 @@ class CloudPrintURLTest : public testing::Test { TEST_F(CloudPrintURLTest, CheckDefaultURLs) { std::string service_url = - internal_cloud_print_helpers::CloudPrintService(profile_.get()). + CloudPrintURL(profile_.get()). GetCloudPrintServiceURL().spec(); EXPECT_THAT(service_url, HasSubstr("www.google.com")); EXPECT_THAT(service_url, HasSubstr("cloudprint")); std::string dialog_url = - internal_cloud_print_helpers::CloudPrintService(profile_.get()). + CloudPrintURL(profile_.get()). GetCloudPrintServiceDialogURL().spec(); EXPECT_THAT(dialog_url, HasSubstr("www.google.com")); EXPECT_THAT(dialog_url, HasSubstr("/cloudprint/")); @@ -169,7 +170,7 @@ TEST_F(CloudPrintURLTest, CheckDefaultURLs) { // Repeat to make sure there isn't a transient glitch. dialog_url = - internal_cloud_print_helpers::CloudPrintService(profile_.get()). + CloudPrintURL(profile_.get()). GetCloudPrintServiceDialogURL().spec(); EXPECT_THAT(dialog_url, HasSubstr("www.google.com")); EXPECT_THAT(dialog_url, HasSubstr("/cloudprint/")); |