| 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 "rlz/lib/lib_values.h" | 5 #include "rlz/lib/lib_values.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "rlz/lib/assert.h" | 8 #include "rlz/lib/assert.h" |
| 9 #include "testing/gmock/include/gmock/gmock.h" | 9 #include "testing/gmock/include/gmock/gmock.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 EXPECT_TRUE(rlz_lib::GetEventFromName("I", &event)); | 53 EXPECT_TRUE(rlz_lib::GetEventFromName("I", &event)); |
| 54 EXPECT_EQ(rlz_lib::INSTALL, event); | 54 EXPECT_EQ(rlz_lib::INSTALL, event); |
| 55 | 55 |
| 56 EXPECT_TRUE(rlz_lib::GetEventFromName("F", &event)); | 56 EXPECT_TRUE(rlz_lib::GetEventFromName("F", &event)); |
| 57 EXPECT_EQ(rlz_lib::FIRST_SEARCH, event); | 57 EXPECT_EQ(rlz_lib::FIRST_SEARCH, event); |
| 58 | 58 |
| 59 EXPECT_FALSE(rlz_lib::GetEventFromName("F ", &event)); | 59 EXPECT_FALSE(rlz_lib::GetEventFromName("F ", &event)); |
| 60 EXPECT_EQ(rlz_lib::INVALID_EVENT, event); | 60 EXPECT_EQ(rlz_lib::INVALID_EVENT, event); |
| 61 } | 61 } |
| OLD | NEW |