OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <string> | 5 #include <string> |
6 | 6 |
7 #include "base/path_service.h" | |
8 #include "base/file_util.h" | |
9 #include "base/string_util.h" | 7 #include "base/string_util.h" |
10 | 8 |
11 #include "courgette/assembly_program.h" | 9 #include "courgette/assembly_program.h" |
12 #include "courgette/courgette.h" | 10 #include "courgette/courgette.h" |
13 #include "courgette/streams.h" | 11 #include "courgette/streams.h" |
14 | 12 |
15 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
16 | 14 |
17 class AdjustmentMethodTest : public testing::Test { | 15 class AdjustmentMethodTest : public testing::Test { |
18 public: | 16 public: |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 std::string s6 = Serialize(prog6); | 97 std::string s6 = Serialize(prog6); |
100 | 98 |
101 EXPECT_TRUE(s1 == s5); // Adjustment did not change A (prog5) | 99 EXPECT_TRUE(s1 == s5); // Adjustment did not change A (prog5) |
102 EXPECT_TRUE(s5 == s6); // Adjustment did change B into A | 100 EXPECT_TRUE(s5 == s6); // Adjustment did change B into A |
103 } | 101 } |
104 | 102 |
105 | 103 |
106 TEST_F(AdjustmentMethodTest, All) { | 104 TEST_F(AdjustmentMethodTest, All) { |
107 Test1(); | 105 Test1(); |
108 } | 106 } |
OLD | NEW |