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 |