OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/policy/cloud_policy_client.h" | 5 #include "chrome/browser/policy/cloud/cloud_policy_client.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "chrome/browser/policy/mock_cloud_policy_client.h" | 12 #include "chrome/browser/policy/cloud/mock_cloud_policy_client.h" |
13 #include "chrome/browser/policy/mock_device_management_service.h" | 13 #include "chrome/browser/policy/cloud/mock_device_management_service.h" |
14 #include "chrome/browser/policy/proto/device_management_backend.pb.h" | 14 #include "chrome/browser/policy/proto/device_management_backend.pb.h" |
15 #include "testing/gmock/include/gmock/gmock.h" | 15 #include "testing/gmock/include/gmock/gmock.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 | 17 |
18 using testing::Mock; | 18 using testing::Mock; |
19 using testing::Return; | 19 using testing::Return; |
20 using testing::SaveArg; | 20 using testing::SaveArg; |
21 using testing::StrictMock; | 21 using testing::StrictMock; |
22 using testing::_; | 22 using testing::_; |
23 | 23 |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 // Verify that the client got all the responses mapped to their namespaces. | 455 // Verify that the client got all the responses mapped to their namespaces. |
456 for (ResponseMap::iterator it = expected_responses.begin(); | 456 for (ResponseMap::iterator it = expected_responses.begin(); |
457 it != expected_responses.end(); ++it) { | 457 it != expected_responses.end(); ++it) { |
458 const em::PolicyFetchResponse* response = client_->GetPolicyFor(it->first); | 458 const em::PolicyFetchResponse* response = client_->GetPolicyFor(it->first); |
459 ASSERT_TRUE(response); | 459 ASSERT_TRUE(response); |
460 EXPECT_EQ(it->second.SerializeAsString(), response->SerializeAsString()); | 460 EXPECT_EQ(it->second.SerializeAsString(), response->SerializeAsString()); |
461 } | 461 } |
462 } | 462 } |
463 | 463 |
464 } // namespace policy | 464 } // namespace policy |
OLD | NEW |