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

Unified Diff: chrome/browser/printing/cloud_print/gcd_api_flow_unittest.cc

Issue 1553333002: Move cloud print specific files out of local_discovery (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@moveprn
Patch Set: Created 4 years, 11 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/browser/printing/cloud_print/gcd_api_flow_unittest.cc
diff --git a/chrome/browser/local_discovery/gcd_api_flow_unittest.cc b/chrome/browser/printing/cloud_print/gcd_api_flow_unittest.cc
similarity index 89%
rename from chrome/browser/local_discovery/gcd_api_flow_unittest.cc
rename to chrome/browser/printing/cloud_print/gcd_api_flow_unittest.cc
index 4d112800d8185b42f673c5d753985ba63497d462..ac64fdcda195d03fa54c3f94e928591feea868b7 100644
--- a/chrome/browser/local_discovery/gcd_api_flow_unittest.cc
+++ b/chrome/browser/printing/cloud_print/gcd_api_flow_unittest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/local_discovery/gcd_api_flow.h"
+#include "chrome/browser/printing/cloud_print/gcd_api_flow.h"
#include <utility>
@@ -10,7 +10,7 @@
#include "base/message_loop/message_loop.h"
#include "base/thread_task_runner_handle.h"
#include "base/values.h"
-#include "chrome/browser/local_discovery/gcd_api_flow_impl.h"
+#include "chrome/browser/printing/cloud_print/gcd_api_flow_impl.h"
#include "content/public/test/test_browser_thread.h"
#include "google_apis/gaia/fake_oauth2_token_service.h"
#include "google_apis/gaia/google_service_auth_error.h"
@@ -25,7 +25,7 @@
using testing::_;
using testing::Return;
-namespace local_discovery {
+namespace cloud_print {
namespace {
@@ -37,8 +37,8 @@ const char kAccountId[] = "account_id";
class MockDelegate : public CloudPrintApiFlowRequest {
public:
- MOCK_METHOD1(OnGCDAPIFlowError, void(GCDApiFlow::Status));
- MOCK_METHOD1(OnGCDAPIFlowComplete, void(const base::DictionaryValue&));
+ MOCK_METHOD1(OnGCDApiFlowError, void(GCDApiFlow::Status));
+ MOCK_METHOD1(OnGCDApiFlowComplete, void(const base::DictionaryValue&));
MOCK_METHOD0(GetURL, GURL());
};
@@ -100,13 +100,13 @@ TEST_F(GCDApiFlowTest, SuccessOAuth2) {
net::URLRequestStatus(net::URLRequestStatus::SUCCESS, net::OK));
fetcher->set_response_code(200);
- EXPECT_CALL(*mock_delegate_, OnGCDAPIFlowComplete(_));
+ EXPECT_CALL(*mock_delegate_, OnGCDApiFlowComplete(_));
fetcher->delegate()->OnURLFetchComplete(fetcher);
}
TEST_F(GCDApiFlowTest, BadToken) {
- EXPECT_CALL(*mock_delegate_, OnGCDAPIFlowError(GCDApiFlow::ERROR_TOKEN));
+ EXPECT_CALL(*mock_delegate_, OnGCDApiFlowError(GCDApiFlow::ERROR_TOKEN));
gcd_flow_->OnGetTokenFailure(
NULL, GoogleServiceAuthError(GoogleServiceAuthError::USER_NOT_SIGNED_UP));
}
@@ -124,11 +124,11 @@ TEST_F(GCDApiFlowTest, BadJson) {
fetcher->set_response_code(200);
EXPECT_CALL(*mock_delegate_,
- OnGCDAPIFlowError(GCDApiFlow::ERROR_MALFORMED_RESPONSE));
+ OnGCDApiFlowError(GCDApiFlow::ERROR_MALFORMED_RESPONSE));
fetcher->delegate()->OnURLFetchComplete(fetcher);
}
} // namespace
-} // namespace local_discovery
+} // namespace cloud_print
« no previous file with comments | « chrome/browser/printing/cloud_print/gcd_api_flow_impl.cc ('k') | chrome/browser/printing/cloud_print/gcd_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698