| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "base/macros.h" | 5 #include "base/macros.h" |
| 6 #include "base/time/time.h" | 6 #include "base/time/time.h" |
| 7 #include "base/version.h" | 7 #include "base/version.h" |
| 8 #include "build/build_config.h" |
| 8 #include "components/update_client/updater_state.h" | 9 #include "components/update_client/updater_state.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 11 |
| 11 namespace update_client { | 12 namespace update_client { |
| 12 | 13 |
| 13 class UpdaterStateTest : public testing::Test { | 14 class UpdaterStateTest : public testing::Test { |
| 14 public: | 15 public: |
| 15 UpdaterStateTest() {} | 16 UpdaterStateTest() {} |
| 16 ~UpdaterStateTest() override {} | 17 ~UpdaterStateTest() override {} |
| 17 | 18 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 updater_state.update_policy_ = 0; | 100 updater_state.update_policy_ = 0; |
| 100 attributes = updater_state.BuildAttributes(); | 101 attributes = updater_state.BuildAttributes(); |
| 101 EXPECT_STREQ("0", attributes.at("updatepolicy").c_str()); | 102 EXPECT_STREQ("0", attributes.at("updatepolicy").c_str()); |
| 102 | 103 |
| 103 updater_state.update_policy_ = -1; | 104 updater_state.update_policy_ = -1; |
| 104 attributes = updater_state.BuildAttributes(); | 105 attributes = updater_state.BuildAttributes(); |
| 105 EXPECT_STREQ("-1", attributes.at("updatepolicy").c_str()); | 106 EXPECT_STREQ("-1", attributes.at("updatepolicy").c_str()); |
| 106 } | 107 } |
| 107 | 108 |
| 108 } // namespace update_client | 109 } // namespace update_client |
| OLD | NEW |